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

From: Date: Fri, 25 Mar 2005 19:54:49 +0000
Subject: note 51177 deleted from function.mysql-fetch-array by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-86990@lists.php.net to get a copy of this message
Note Submitter: aksel at post dot com ---- An easy way to create a 2-dimensional array out of mysql table "table0" with "field0" as key: <?php $result=mysql_query("select * from table0", $link); $table0_array=array(); while($line=mysql_fetch_array($result, MYSQL_ASSOC)){ $table0_array[$line["field0"]]=$line; } ?>

« previous php.notes (#86990) next »