note 3339 deleted from mysql_query by ronabop

From: Date: Sat, 12 Aug 2000 22:30:25 +0000
Subject: note 3339 deleted from mysql_query by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-1695@lists.php.net to get a copy of this message
I want to know, if there is a MySQL-Statement or a PHP3 - function to increase a value in an table. <PRE> $anid=mysql_query("select clicks from statistic where user='$user'"); $zeile=@mysql_fetch_array($anid); mysql_query("update statistic set clicks='".++$zeile[0]."' where user='$user'"); </PRE> is this the only way to do that ??? and is it intellegent to use a mysql-database for such kind of statistics or not ?? thx in advance !

« previous php.notes (#1695) next »