Hi all
I have a problem i need to display error when the data insertion leads to erronius input on the top of the same page. I wrote following but not working till i press back button
pLESE TELL ME HOW TO DO IT
$insqry1="insert into blue_insuranceclaim(insurance_compname,company_url,phone1,phone2,email) values('".$compname."','".$website."','".$phone1."',".$phone3.",'".$email."')";
//echo $insqry1;die;
$insertcoupon = $db->Execute($insqry1);
if(mysql_error())
{
$_SESSION['errMessage']="Please enter correct values";
header("Location: addclaimpage.php");
}
THANKS IN ADVANCE