I am not sure about the correct way to update with Oracle and php, my following script says as error message:
SQL command not properly closed
$conn = ocilogon ("xxx", "xxx", "xxx");
$stmt = ociparse ($conn, "UPDATE TABLE SET COD='$POST[COD]' DESC='$POST[DESC]' WHERE COD='$_POST[COD]'");
ociexecute($stmt);
if (ocifetch($stmt)){
echo "<ul>";
echo "<li><strong>Cód: </strong>".ociresult ($stmt, "COD") ."</li>";
echo "<li><strong>Desc: </strong>".ociresult ($stmt, "DESC") ."</li>";
echo "</ul>";
}
ocifreestatement($stmt);
ocilogoff($conn);
What´s the right way to use UPDATE with PHP and Oracle?
Thank´s in advance