note 36152 added to function.mysql-num-rows
| From: | webmisstress at harleybabes dot net | Date: | Mon, 29 Sep 2003 00:37:46 +0000 |
| Subject: | note 36152 added to function.mysql-num-rows | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-57240@lists.php.net to get a copy of this message | ||
Ok I am still confused on this, I have the same error but I do not know how o fix it.
http://www.harleybabes.net/bubble/bubble.php
is giving me the error:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in
/home/harleyba/public_html/bubble/bubble.php on line 25
My script says this:
$res = mysql_query("select UNIX_TIMESTAMP(DATE_ADD(spenddate,INTERVAL " . $_timer .
" HOUR))-UNIX_TIMESTAMP(NOW()) from bubble where gameid='$_id' and status=1 and
burst=0 order by id desc");
if (mysql_num_rows($res)>0) {
$dif_sec = mysql_result($res,0,0);
if ($dif_sec <= 0) {
//restart!!!
if ($_insure==1) {
So how do I fix this please correct the above so I understand. Please email me if you could at
webmisstress@harleybabes.net
Thanks,
Harley
----
Manual Page -- http://www.php.net/manual/en/function.mysql-num-rows.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+36152
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+36152&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+36152&report=yes