note 13096 deleted from function.mysql-fetch-assoc by philip
| From: | philip@php.net | Date: | Sun, 07 Oct 2001 07:10:37 +0000 |
| Subject: | note 13096 deleted from function.mysql-fetch-assoc by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-18653@lists.php.net to get a copy of this message | ||
i use this simple function for creating variables from assoc field.
<P>
$query = MySQL_Query("SELECT * from workgroups");<BR>
while ($res = MySQL_Fetch_Assoc($query)) {<BR>
while(${Key($res)} = Current($res)){ <BR>
Next($res); <BR>
}<BR>
echo "$name ->$topic ; owner is $owner\n";<BR>
}<BR>