taker330 Posted June 15, 2012 Share Posted June 15, 2012 Hello i am trying to add a function that extracts emails to a csv file i already have this: if ($this->exportCSV AND (!isset($this->noAdd) OR !$this->noAdd)) echo '<a href="'.$currentIndex.'&csv'.$this->table.'&token='.$this->token.'"><img src="../img/admin/add.gif" border="0" /> '.$this->l('Export to CSV').'</a><br /><br />'; But i am stuck, i need to know where " &csv'.$this->table.' " goes to can someone maybe just explain how that link works and wich php pages it goes to Link to comment Share on other sites More sharing options...
taker330 Posted June 18, 2012 Author Share Posted June 18, 2012 Hello, i fixed it myself, thanks for helping me out. Link to comment Share on other sites More sharing options...
Berlindoor Posted July 10, 2012 Share Posted July 10, 2012 Hey taker, I would love to have that function working on my shop too...how did you do that? Link to comment Share on other sites More sharing options...
taker330 Posted July 11, 2012 Author Share Posted July 11, 2012 Hello, it is quite a simple piece of code, i added this in a new page and included admintab.php to it, then you can just add the link somewhere: $table="ps_customer"; // this is the tablename that you want to export to csv from mysql. AdminTab::exportMysqlToCsv($table); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now