note 78074 deleted from function.mysql-field-name by bjori

From: Date: Thu, 27 Sep 2007 12:29:46 +0000
Subject: note 78074 deleted from function.mysql-field-name by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-130845@lists.php.net to get a copy of this message
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);

« previous php.notes (#130845) next »