Duplicate registry insertion
Posted by: MCarrard (---.dynamic.idial.com.br)
Date: February 28, 2019 05:38PM

Hello!
I am having a recurring problem in a program that uses wampserver. Often, when performing an insertion in MySQL via PHP 5.6, the server loops and inserts hundreds or thousands of equal records, changing only the primary key (autoincrement). Has anyone else faced this problem or know what the cause might be? Thank you for any help.
Marcos

Options: ReplyQuote
Re: Duplicate registry insertion
Posted by: RiggsFolly (Moderator)
Date: February 28, 2019 05:51PM

Hi Marcos

No NEVER

This is really more likely to be due to some code you have written.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Duplicate registry insertion
Posted by: MCarrard (---.dynamic.idial.com.br)
Date: February 28, 2019 06:06PM

Hello Riggs! I find it unlikely because this happens without a defined pattern and in different modules. Anyway, I'll revise the code again. The curious thing is that I have the same code running in linux and this has never happened, only with windows.

Options: ReplyQuote


Sorry, only registered users may post in this forum.