- Code: Select all
$query = mysql_query("SELECT `tempID` FROM `pending` WHERE `status` = 0");
$status = mysql_fetch_array($query);
This codes has only been returning a single row any ideas?
Moderators: macek, egami, gesf
$query = mysql_query("SELECT `tempID` FROM `pending` WHERE `status` = 0");
$status = mysql_fetch_array($query);
while ($row = mysql_fetch_array($query, MYSQL_NUM)) {
$status[$i] = $row[0];
$i++;
} 
Users browsing this forum: No registered users and 1 guest