validation for existing?
Posted: Sat Jul 07, 2012 4:17 am
Hi all,
i just wondering, why i cant get in from this [header('Location:in_function/yourrequest.php');] below.
i just wondering, why i cant get in from this [header('Location:in_function/yourrequest.php');] below.
Code: Select all
$pingsql = ("SELECT * FROM tbl_update_request WHERE id = id");
$pingresult = mysql_query($pingsql) or die('query error. $pingsql' .mysql_error());
if(mysql_num_rows($pingresult) > 0 )
{
header('Location:in_function/yourrequest.php');
}
if((empty($varre_qty)) || (!(ctype_digit($varre_qty))))
{
header('Location:error_function/error82.php');
}