Duplicate error
#2

That's because, as we can assume looking at your code the field "ID" is a primary key, thus there can only be one row with ID 1. Hence, the field "ID" should be an auto increment column where all you need to do is insert the data and retrieve the ID inserted using cache_insert_id();

PHP код:
INSERT INTO `Jarmuvek` (`Tulajdonos`, `Tipus`, `Szin1`, `Szin2`, `Elado` ,`Ar`, `Elet`, `Uzemanyag`, `Panelek`, `Lampak` , `Ajtok` , `Kerekek` , `Hidraulika`, `Matrica` , `Frakcio` , `Zar` , `PosX` , `PosY` , `PosZ` , `PosA`) VALUES (0'411''1''1''1' '0'100000, -1614.2681228.2757.047283.651)
Reply


Messages In This Thread
Duplicate error - by Edevane - 10.08.2016, 20:58
Re: Duplicate error - by ThePhenix - 10.08.2016, 21:01
Re: Duplicate error - by Konstantinos - 10.08.2016, 21:02
Re: Duplicate error - by Edevane - 10.08.2016, 21:11

Forum Jump:


Users browsing this thread: 1 Guest(s)