Bug #15899 Updated: RC from INSERT INTO if incorrect
| From: | mfischer@php.net | Date: | Wed, 06 Mar 2002 14:53:49 +0000 |
| Subject: | Bug #15899 Updated: RC from INSERT INTO if incorrect | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-1780@lists.php.net to get a copy of this message | ||
ID: 15899
Updated by: mfischer@php.net
Reported By: rene.wunderlich@milaro.net
-Status: Open
+Status: Bogus
Bug Type: MySQL related
Operating System: linux
PHP Version: 4.1.2
New Comment:
The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php
Previous Comments:
------------------------------------------------------------------------
[2002-03-06 09:39:37] rene.wunderlich@milaro.net
hi all
$my_sql = "INSERT INTO $table ( my_time ) values( NOW())";
if(!$my_res = mysql_query($my_sql,$my_db))
{echo "ERROR query<BR>".mysql_error($my_db);}
$test1 = mysql_insert_id();
$test2 = mysql_affected_rows($my_db);
echo "<p>my result $test1 $test2 <br>";
the correct result from $test1 if 1..9 and from $test2 = 1
the entry in the db is correct
plz test this link
http://62.72.17.147/bug.php4
http://62.72.17.147/bug.phps
and the mysql db for local test's
http://62.72.17.147/bug.txt
sorry for my bad englich ;)
Rene
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15899&edit=1