session_start();
include("db.php");
if(isset($_POST["action"]) && $_POST["action"]=="validate"){
// Where Condition
$where="username='".mysql_real_escape_string($_POST["username"])."' and password='".mysql_real_escape_string($_POST["password"])."'";
// Here function is called
$seldata=$nds->webdreamselect('tbl_employers',$where,'','','','');
echo mysql_error();
if(mysql_num_rows($seldata)!=0){
$_SESSION["employer"]=mysql_real_escape_string($_POST["username"]);
header("location:job-employer.php");
}else{
header('location: job-employer.php?msg=2');
//$message="Invalid Username / Password
Please try again.";
} }
$pageData = $nds->getcmsdata(4);
$act_id=4;
?>