note 24049 added to function.mysql-affected-rows

From: Date: Mon, 05 Aug 2002 12:05:23 +0000
Subject: note 24049 added to function.mysql-affected-rows
Groups: php.notes 
Request: Send a blank email to php-notes+get-34298@lists.php.net to get a copy of this message
Be carefull, if you do a DELETE WHERE query. mysql_num_rows will return 0, if you do a DELETE FROM table WHERE xyz LIKE '$foo' LIMIT 1; but will return a correct result if you use DELETE FROM table WHERE xyz = '$foo' LIMIT 1; -- http://www.php.net/manual/en/function.mysql-affected-rows.php http://master.php.net/manage/user-notes.php?action=edit+24049 http://master.php.net/manage/user-notes.php?action=delete+24049 http://master.php.net/manage/user-notes.php?action=reject+24049

« previous php.notes (#34298) next »