What's the best practice for handling the following situation, when I
do an update like this:
$sql = "UPDATE haha SET papa="loco" WHERE id=$var";
$res = mysql_query($sq l,$db);
If I don't get a match in my where clause, i.e., 12!=44 the UPDATE does
not occur but mysql_errno == 0 and mysql_error = "" so I can't capture
the failure.
Any thoughts?
Jeff
do an update like this:
$sql = "UPDATE haha SET papa="loco" WHERE id=$var";
$res = mysql_query($sq l,$db);
If I don't get a match in my where clause, i.e., 12!=44 the UPDATE does
not occur but mysql_errno == 0 and mysql_error = "" so I can't capture
the failure.
Any thoughts?
Jeff
Comment