i want to create a csv file from a mysql table using php code
can anybody give me example which will have date fields too
Thanks in advance
can anybody give me example which will have date fields too
Thanks in advance
$results = "select * from table";
for(each result){
$text .= field1.",".field2.",".field3."\n";
}
write $text to file
for(each row){
for(each field){
$text .= field.",";
}
$text .= "\n";
}
Comment