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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php