FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a 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: Column count doesn't match value count at row 1
MySQL error
MySQL error
MySQL error 1604

Suppressing mysql error
[mySQL] Error I cannot Debug
Mysql Error
Error connecting to mysql ; please help
Mysql error: Warning: mysql_num_rows():

mysql error
Urgent! MySQL error!
MYSQL Ajax im Installation Error
MySQL Error#: 1130 - help
Why my site is getting error ???
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

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