Hi all,
i have a huge problem...
i want to insert data from a form into an oracle db table.
eveythings correct, but there seems to be a multiple insert of the same data! which isn't possible because of the primary key so i get the Error
ORA-00001: unique constraint (######.SYS_C00773) violated
the dataset is there when i select, but i have absolutly no idea why this error occurs...
heres my code
<?php
$spe = strtr($_POST['spesen'], ",", ".");
$kurs = strtr($_POST['kurs'], ",", ".");
$query1 = "insert into mont_staaten values(" . $_POST['nummer'] . ",'" . $_POST['name'] . "', " . $spe . ", " . $kurs . ", '" . $_POST['currency'] . "')";
echo $query1;
include "db_connect.php";
include "error_report.php";
$insrt = OCIParse($db, $query1);
OCIExecute($insrt,OCI_DEFAULT);
Error_Report($insrt);
OCICommit($db);
?>
hope that you see the error and can help me... i'm completly stuck... 🙁