note 27499 deleted from function.mysql-affected-rows by danbrown

From: Date: Tue, 28 Apr 2009 01:52:26 +0000
Subject: note 27499 deleted from function.mysql-affected-rows by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-153886@lists.php.net to get a copy of this message
Note Submitter: spam123 at cobsen dot biz ---- If you need to know the actual count of rows, even if some update changed nothing add a field count int(11) and add one on every update, like in: mysql_query("update table set count=count+1, ..."); if (mysql_affected_rows()==0) { mysql_query("insert into table ..."); }

« previous php.notes (#153886) next »