note 39531 deleted from function.mysql-list-fields by nlopess

From: Date: Sun, 01 Feb 2004 12:26:55 +0000
Subject: note 39531 deleted from function.mysql-list-fields by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-64501@lists.php.net to get a copy of this message
Note Submitter: no@user.com ---- I couldn't get any of this field stuff to work. Anyway here is what I did...since I only needed field names on the first row... while ($test_row = mysql_fetch_assoc($test_query)) { if ($i == 0) { $columns = array_keys($test_row); // here is your array of column names. } $i++; // conduct your data business here... }

« previous php.notes (#64501) next »