note 95245 added to mysqli.affected-rows

From: Date: Mon, 21 Dec 2009 10:12:00 +0000
Subject: note 95245 added to mysqli.affected-rows
Groups: php.notes 
Request: Send a blank email to php-notes+get-164172@lists.php.net to get a copy of this message
A useful note from MySQL documentation: "With ON DUPLICATE KEY UPDATE, the affected-rows value per row is 1 if the row is inserted as a new row and 2 if an existing row is updated." So, comparing affected-rows value to 1 may not be enough to check for success. ---- Server IP: 69.147.83.197 Probable Submitter: 84.245.198.180 ---- Manual Page -- http://www.php.net/manual/en/mysqli.affected-rows.php Edit -- https://master.php.net/note/edit/95245 Del: integrated -- https://master.php.net/note/delete/95245/integrated Del: useless -- https://master.php.net/note/delete/95245/useless Del: bad code -- https://master.php.net/note/delete/95245/bad+code Del: spam -- https://master.php.net/note/delete/95245/spam Del: non-english -- https://master.php.net/note/delete/95245/non-english Del: in docs -- https://master.php.net/note/delete/95245/in+docs Del: other reasons-- https://master.php.net/note/delete/95245 Reject -- https://master.php.net/note/reject/95245 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#164172) next »