Nevermind, i was sitting here thinking having coffee and it hit me, that means i have to change all my mysql_query to mysqli_query, thats way too much ill do that one day but not now.
ill just use mysql_affected_rows instead.
what i was trying to do is do an error trap but the if not !result i could not get to flag on error so i guess for update you have to use affected rows right?
just fyi this is what i did
PHP Code:
if($_POST['savecred'])
{
$issueid = intval($_POST['issueid']);
$numcred = intval($_POST['numcred']);
$query = "UPDATE members SET mem_cred = mem_cred + $numcred WHERE mem_userid = '$issueid'";
$qrest = mysql_query($query,$link) or die(mysql_error());
$didthisupdate = mysql_affected_rows($link);
if($didthisupdate)
{
$confmsg = "<span style='color:green;'>Credits have been issued</span>";
}else{
//used for troubleshootingonly
//$confmsg = 'Invalid query: ' . mysql_error() . "\n";
$confmsg = "<span style='color:red;'>Error - Credits not issued - verify userid (may not exist) or other error has occured</span>";
}//close else
}//close if post savecred