StirCrazy Posted January 5, 2006 Share Posted January 5, 2006 $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 Quote Link to comment Share on other sites More sharing options...
LazyJones Posted January 5, 2006 Share Posted January 5, 2006 [!--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 Quote Link to comment Share on other sites More sharing options...
fenway Posted January 5, 2006 Share Posted January 5, 2006 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.