note 107412 deleted from function.mysql-affected-rows by philip
| From: | philip@php.net | Date: | Fri, 04 Sep 2015 21:47:09 +0000 |
| Subject: | note 107412 deleted from function.mysql-affected-rows by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-203694@lists.php.net to get a copy of this message | ||
Note Submitter: cbal at freemail dot hu
----
I dont know why but sometimes mysql_affected_rows does not work (return 0 or nothing) besides the
query worked well.
So use this if you have a problem:
<?php
$result = mysql_query("update/delete ...");
$last = mysql_query("SELECT ROW_COUNT();");
$last = mysql_fetch_array($last);
?>