Jump to content


Photo

mysql_query


  • Please log in to reply
2 replies to this topic

#1 StirCrazy

StirCrazy
  • Members
  • PipPipPip
  • Advanced Member
  • 75 posts

Posted 05 January 2006 - 02:24 AM

$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


#2 LazyJones

LazyJones
  • Members
  • PipPipPip
  • Advanced Member
  • 78 posts

Posted 05 January 2006 - 05:05 AM

[!--quoteo(post=333366:date=Jan 4 2006, 09:24 PM:name=StirCrazy)--][div class=\'quotetop\']QUOTE(StirCrazy @ Jan 4 2006, 09:24 PM) View Post[/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
[/quote]

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


#3 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 05 January 2006 - 07:02 PM

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.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users