mysql to excel exporting data using php getting html code also
- by pmms
hi all following is code for getting xlsheet from mysql using php
`
if( ($_POST['Submit']=='generateexcel'))
{
$tblname=$_GET['generateexcel'];
global $obj_mysql;
$table="tbl_js_login"; // this is the tablename that you want to export to csv from mysql.
function exportMysqlToCsv($table,$filename = 'export.csv')
{
$csv_terminated…