I'm trying to UPDATE or INSERT some data into the database.
If I do an UPDATE, is there any indication as whether the UPDATE worked? I'm not talking about a database connection error, but more like:
Did the UPDATE faile because:
1. The data didn't exist in the database to upadate
2. The UPDATE failed because a duplicate key was found.
I'm trying to do an:
UPDATE data
if (failed)
INSERT data
I can't figure out if I can get any error codes or not.
I'm using:
Code
$result = $dbconn->Execute($sql);
To execute my SQL query, but when I do a print_r($results) there is nothing there to let me know the status of the UPDATE.
Thanks,
Grant
