--- Bastien Koert <bastien_k@xxxxxxxxxxx> 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 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php