/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php # export to excel $select = "SELECT * FROM table"; for ( $i = 0; $i < $fields; $i++ ) { } { $line = ''; foreach( $row as $value ) { { $value = "\t"; } else { $value = '"' . $value . '"' . "\t"; } $line .= $value; } } if ( $data == "" ) { $data = "\n(0) Records Found!\n"; } print "$header\n$data";?>
Comments
