RE: [PHP-DB] Updating count on record results

From: Date: Fri, 19 Nov 2004 15:28:48 +0000
Subject: RE: [PHP-DB] Updating count on record results
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-37358@lists.php.net to get a copy of this message
--- Bastien Koert <bastien_k@hotmail.com> wrote: > this is how I did it for a client's site > > // update the number of times the vehicle has been > viewed > mysql_db_query($dbname, "UPDATE vehicle_inventory > SET viewed=viewed+1 WHERE > ccode='$ccode'", $link); > Where did this code go though ? Meaning, was it in a seperate script / page or was it part of a bigger query that first got the results based on certain criteria , the did the update? Stuart

« previous php.db (#37358) next »