note 35438 deleted from function.mysql-fetch-array by philip

From: Date: Sun, 08 Aug 2004 16:44:27 +0000
Subject: note 35438 deleted from function.mysql-fetch-array by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-74247@lists.php.net to get a copy of this message
Note Submitter: flobee@gmx.net ---- i want to get table-names and data in a (one) simple query to re-check things and setting things dynamicly based on tablenames... $sql = "select * from table"; $fields = mysql_query( $sql ); while($row=mysql_fetch_array($fields, MYSQL_ASSOC)) { while(list($key,$val) = each($row) ) { echo "tablename: $key value: $val<br>"; } } mysql_free_result($fields);

« previous php.notes (#74247) next »