User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 391,628 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,804 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource

Join Date: Jul 2007
Posts: 1
Reputation: theflyingtom is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
theflyingtom theflyingtom is offline Offline
Newbie Poster

Re: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource

  #23  
Jul 1st, 2007
Ok maybe someone can see something im missing (its driving me in sane)
 
$query = mysql_query("UPDATE user SET meso='1' WHERE uid='$this->user'");
		$nrows = mysql_num_rows($query);
		$ret = mysql_query($query) or die(mysql_error());  

this returns:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /Applications/MAMP/htdocs/worldjam/wjm.php on line 16

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1' at line 1

what am I doing wrong?
Thanks in advanced
Tom
Last edited by theflyingtom : Jul 1st, 2007 at 11:41 pm.
Reply With Quote  
All times are GMT -4. The time now is 12:54 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC