note 3993 modified in mysql_query by ronabop

From: Date: Sat, 12 Aug 2000 22:30:54 +0000
Subject: note 3993 modified in mysql_query by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-1697@lists.php.net to get a copy of this message
if you want to incremenet something on the sql server, you should let the sql server do the work a query like "update statistic set clicks=clicks +1 where user='$user'" will do what you're doing in your code, and eliminate some race conditions. http://www.php.net/manual/function.mysql-query.php

« previous php.notes (#1697) next »