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 Link to comment https://forums.phpfreaks.com/topic/3147-mysql_query/ 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 Link to comment https://forums.phpfreaks.com/topic/3147-mysql_query/#findComment-10609 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. Link to comment https://forums.phpfreaks.com/topic/3147-mysql_query/#findComment-10637 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.