|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-03-02 13:33 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 19:00:02 2025 UTC |
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;