php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27464 Duplicate record inserts
Submitted: 2004-03-02 13:31 UTC Modified: 2004-03-02 13:33 UTC
From: lecas92 at lybertysurf dot fr Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.3.4 OS: XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: lecas92 at lybertysurf dot fr
New email:
PHP Version: OS:

 

 [2004-03-02 13:31 UTC] lecas92 at lybertysurf dot fr
Description:
------------
When I insert a record in Mysql Database, I have a duplicate record inserts
My database is a Mysql database
My operating system is XP


Reproduce code:
---------------
$name = "myname";
$compagny = "mycompagny";
$req = "INSERT INTO MYTABLES (DATA1, DATA2) VALUES ('".$name."', '".$compagny."')";

$res = mysql_query ($req, $base);

// The record is inserted into the table correctly, except for the fact that it appears twice;



Expected result:
----------------
// The record is inserted into the table correctly, except for the fact that it appears twice;


Actual result:
--------------
// The record is inserted into the table correctly, except for the fact that it appears twice;


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-02 13:33 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 02:01:29 2024 UTC