Note Submitter: m dot hartman at succesnet dot nl
Reason: bad code
----
just simplifying things..
$result = mysql_query(select * from tbl_name);
$i=0;
$max = mysql_num_fields($result);
counting up
while( $i<$max )
$data['columns'][$i] = mysql_field_name($result, $i++);
and counting down
$i= mysql_num_fields($result);
while( --$i )
$data['columns'][$i] = mysql_field_name($result, $i);
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|