header("Content-type: text/html");
header("Content-Disposition: attachment; filename=filename.csv");
Type: Posts; User: brijbhushansh; Keyword(s):
header("Content-type: text/html");
header("Content-Disposition: attachment; filename=filename.csv");
i give code,which can export sql data to exel file(csv format)...
$SQL="Select * from student";
$tot=mysql_query($SQL,$rs);
if($tot==0)
{
$msg="No records found with such roll...