I need a second pair of eyes on this. I have a database which consists of thousands of tables, all with the same structure. I'm selecting each table then selecting the URL from the rows and checking to see if the URL returns good HTML. The whole thing works fine and it runs through OK once then for subsequent instances of the while function the SQL statement is returning a boolean.
I'm getting this error for all but the first instance, which is running through absolutely fine.
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/toplist/public_html/config/index.php on line 1272
$result = mysql_query("SELECT `access_name` FROM `multiforums_forums`");
while ($names=mysql_fetch_array($result)) {
$acces = $names[access_name];
$get_urls = mysql_query("SELECT * from `".$acces."_users`");
while ($results=mysql_fetch_array($get_urls))
{
//this bit works fine
}
}
Hope this makes sense