Mysql Help #2
| From: | elias | Date: | Thu, 02 Aug 2001 08:31:23 +0000 |
| Subject: | Mysql Help #2 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-60863@lists.php.net to get a copy of this message | ||
Hi again.
$result = mysql_query("SELECT id FROM table");
$id_array = array();
while ($r = mysql_fetch_array($result))
$id_array[] = $r["id"];
// now $id_array[] is an array of IDs that was grabbed from the database.
Any faster and/or better approache to build the $id_array?