View Full Version : call to mysql

02-03-2007, 03:03 PM
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/brown/public_html/themafia/countrys.php on line 328

^^ not sure what this means :S

02-03-2007, 03:52 PM
it means that the query you've used is wrong.
change your code so it does something like:

$query = 'SELECT * FROM table'; //except your query has an error...
$result = mysql_query($query) or die(mysql_error().$query);
while($obj = mysql_fetch_object($result)) {

and you'll get an error message that's more useful.

Alternatively, paste a copy of the code (just the bit with the query...as in my code above) and someone might spot the problem.