why am i removing html mysql trade csv?
i know doubt asked before, nonetheless i ran problem.
oddly enough, i govern function, includes html page couple name govern function.
function exportcsv($table) {
$result = mysql_query("show columns ".$table."");
$i = 0;
(mysql_num_rows($result) > 0) {
while ($row = mysql_fetch_assoc($result)) {
$csv_output .= $row['field']."; ";
$i++;
}
}
$csv_output .= "\n";
$values = mysql_query("select * ".$table."");
while ($rowr = mysql_fetch_row($values)) {
($j=0;$j<$i;$j++) {
$csv_output .= $rowr[$j]."; ";
}
$csv_output .= "\n";
}
$filename = $file."_".date("y-m-d_h-i",time());
header("content-type: application/vnd.ms-excel");
header("content-disposition: csv" . date("y-m-d") . ".csv");
header( "content-disposition: filename=".$filename.".csv");
imitation $csv_output;
exit;
}
does anyone know since consolidate html csv file?
Comments
Post a Comment