How to know record has been updated successfully in php
Posted
by Lisa Ray
on Stack Overflow
See other posts from Stack Overflow
or by Lisa Ray
Published on 2010-05-27T10:54:42Z
Indexed on
2010/05/27
11:01 UTC
Read the original article
Hit count: 165
$sql = "UPDATE...."
;
if(mysql_query($sql))
{
$_SESSION['Trans']="COMMIT";
header("location:result.php");
exit;
}
else
{
$_SESSION['Trans']="FAIL";
$_SESSION['errors'] = "Error: Sorry! We are unable to update your Profile, Please contact to PNP HelpDesk.";
header("location:result.php");
exit;
}//end IF
data is getting updated then why compiler is not coming inside IF condition.
© Stack Overflow or respective owner