Login"; //print_r ($_SESSION); if(isset($_COOKIE['prepexam'])) { $datahost = 'localhost'; $datauser= 'prepexam_admin'; $datapasswd = 'Exsim01'; $base = 'prepexam_db2'; $username1 = $_COOKIE['prepexam']['username']; $password1 = $_COOKIE['prepexam']['password']; //$password= decrypt($password1,'prepexam'); $db_connect = mysql_connect($datahost,$datauser,$datapasswd) or die("Could not connect"); $base_selection = mysql_select_db($base,$db_connect) or die("could not connect to database"); $query = "SELECT Email, Password,act_status,CanID FROM Candidates WHERE Email = '$username1' AND Password = '$password1'"; $result = mysql_query($query, $db_connect); if(mysql_num_rows($result)) { $row=mysql_fetch_array($result); $act=$row[2]; //echo $act; $canid1=$row[3]; //echo $canid1; if($act==1) { $_SESSION['loggedin'] = 1; $_SESSION['canid'] = $canid1; $acc = "My Account"; } } } if (isset($_SESSION['loggedin']) && $_SESSION['loggedin'] == 1) { $canid1 =$_SESSION['canid']; $datahost = 'localhost'; $datauser= 'prepexam_admin'; $datapasswd = 'Exsim01'; $base = 'prepexam_db2'; $db_connect = mysql_connect($datahost,$datauser,$datapasswd) or die("Could not connect"); $base_selection = mysql_select_db($base,$db_connect) or die("could not connect to database"); $query1 = "SELECT act_status FROM Candidates WHERE CanID = '$canid1'"; $result1 = mysql_query($query1, $db_connect); //echo $canid1; if(mysql_num_rows($result1)) { $row=mysql_fetch_array($result1); $act=$row[0]; if($act==1) { $acc = "My Account"; } } } ?>
Register

Registration

FAQ
Contact Us
Disclaimer
           About      Privacy Policy            Site Map

Copyright Anand Software and Training Private Limited.