FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


[solved] Weird mysql error





thnn
Im creating this code for my site and im getting the error

Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource

the error is from this line but i cannot see whats wrong. Can anyone see what is wrong with it?


Code:
$yourhubs = mysql_query("SELECT * FROM hubs WHERE airline_id='$uid'");
 while($yourhubs = mysql_fetch_object($yourhubs))
BlackSkad
I know it is solved, but for others with the same problem (I suffered on that one too, once)
Code:
mysql_query("SELECT * FROM hubs WHERE `airline_id`='$uid'");

**See the ``-things around airline_id**

But as no error-message was provided, I'm not completely sure that was the error Smile

BlackSkad
Related topics
Mysql error!
MySQL error 1604
Suppressing mysql error
[mySQL] Error I cannot Debug
MySql error: Column count doesn't match value count at row 1
Mysql Error
MySQL error
Error connecting to mysql ; please help
Mysql error: Warning: mysql_num_rows():
mysql error
MySQL error
Urgent! MySQL error!
MYSQL Ajax im Installation Error
MySQL Error in code but works in phpMyAdmin
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.