Chris wrote:

Warning: mysql_result(): supplied argument is not a valid MySQL result
resource in /home/virtual/site17/fst/var/www/html/function.php on line 51

Warning: mysql_free_result(): supplied argument is not a valid MySQL result
resource in /home/virtual/site17/fst/var/www/html/function.php on line 52

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result
resource in /home/virtual/site17/fst/var/www/html/function.php on line 58

I get the above repeating errors when I aply the code below to the random
function:

49 srand ((double) microtime() * 1000000);
50 $r = mysql_query('select count(*) as cnt from agentdb');
51 $cnt = mysql_result($r, 0, 0);
52 mysql_free_result($r);

My guess is that something is wrong with your query. Echo out mysql_error() after line 50.


--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to