I have the following code...
$interactionid = '123';
$interactioncode = "ECWL";
$oldDOL = $_GET['oldDOL'];
$newDOL = $_GET['newDOL'];
include("ORCLconfig.php");
$addWSclaim = oci_parse($conn, "UPDATE claims SET DATE_OF_LOSS='$newDOL' WHERE NUMBER='32122'");
oci_execute($addWSclaim, OCI_COMMIT_ON_SUCCESS);
$addtointeractionMAKE = oci_parse($conn, "INSERT INTO interaction_items VALUES (null, '$interactionid', '$interactioncode', '$oldDOL', '$newDOL', localtimestamp)");
oci_execute($addtointeractionMAKE, OCI_COMMIT_ON_SUCCESS);
oldDOL and newDOL are dates which arrive in the format DD-MMM-YY which is inline with the DATE_OF_LOSS column in the claims table.
However only the second statement seems to be working as there is no change on the claims table nor are there any errors shown.
I'm using an Oracle database and if I do the update statement in the SQL console it works fine.
Knowing me it will be something remarkably simple which i've somehow overlooked but any help would be appreciated :)