Re: supplied argument errors

From: Date: Tue, 23 Jun 2009 22:48:01 +0000
Subject: Re: supplied argument errors
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-294497@lists.php.net to get a copy of this message
kranthi wrote: > the code works? > > the above warnings suggest that ter is a mysql syntax error. > > moreover the documentation of mysql_affected_rows suggests that u should > supply a valid recource identifier but not a mysql result resource. > i.e., the above should be mysql_affected_rows($db) > Yes, so: 1. It was an UPDATE and not a SELECT, how would it return any f'ing rows?!?! $rows is either TRUE or FALSE, because it returns whether the UPDATE was successful or not. 2. Please read the f'ing manual about what kranthi said! -- Thanks! -Shawn http://www.spidean.com

« previous php.general (#294497) next »