Check the value from DBand pass it to next page
Posted
by
user554176
on Stack Overflow
See other posts from Stack Overflow
or by user554176
Published on 2010-12-27T05:26:58Z
Indexed on
2010/12/27
5:54 UTC
Read the original article
Hit count: 149
php
I have a field ,if user enters data it should go and check db if it is present it should redirect to next page.
But here i m not sure whether it is checking the db but mysql query is correct.
$ThirdPartyCategoryName =$_POST['ThirdPartyCategoryName'];
$activate = mysql_query("SELECT * FROM `thirdpartycategorymaster` WHERE `delete` = 'y' ");
if($activate=='y')
{
header("location:catact.php");
}
else
{
//$activate=='NULL';
header("location:tp_home.php");
}
© Stack Overflow or respective owner