Posted: Wed Mar 10, 2004 3:45 am
try and and see, i just did and it worked
anyway, thats is the reason you are getting what you are getting.
Mark
anyway, thats is the reason you are getting what you are getting.
Mark
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$result = mysql_query($query)MarkIt appears that php's "mysql_affected_rows" calls mysql's "mysql_affected_rows"... which says:
"For SELECT statements, mysql_affected_rows() works like mysql_num_rows().
mysql_affected_rows() is currently implemented as a macro."
i have tried this before as well and it has never worked for mefrom manual wrote: mysql_affected_rows() does not work with SELECT statements; only on statements which modify records. To retrieve the number of rows returned by a SELECT, use mysql_num_rows().