note 36152 rejected from function.mysql-num-rows by pollita
| From: | pollita@php.net | Date: | Mon, 29 Sep 2003 02:52:40 +0000 |
| Subject: | note 36152 rejected from function.mysql-num-rows by pollita | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-57244@lists.php.net to get a copy of this message | ||
Note Submitter: webmisstress@harleybabes.net
----
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