Jump to content

Archived

This topic is now archived and is closed to further replies.

StirCrazy

mysql_query

Recommended Posts

$QueryReference = mysql_query($QueryString, $DatabaseConnection) or die;

 

Is there anything wrong with the way this line is formatted, because I keep getting this error :-

 

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/library/database.php on line 20

 

 

cheers

S.C

 

Share this post


Link to post
Share on other sites

[!--quoteo(post=333366:date=Jan 4 2006, 09:24 PM:name=StirCrazy)--][div class=\'quotetop\']QUOTE(StirCrazy @ Jan 4 2006, 09:24 PM) 333366[/snapback][/div][div class=\'quotemain\'][!--quotec--]

$QueryReference = mysql_query($QueryString, $DatabaseConnection) or die;

 

Is there anything wrong with the way this line is formatted, because I keep getting this error :-

 

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/library/database.php on line 20

cheers

S.C

 

Line and the format has nothing wrong with it. Look for my signature for extra help

 

Share this post


Link to post
Share on other sites

You obviously don't have a valid connection to your DB -- test the value of the $Connection variable, and you'll see that it's invalid.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.