"; echo "window.location = '".$url."'; \n"; echo ""; } $us=$_POST[username]; $pw=$_POST[password]; if ($_POST[Submit]=="Login"){ $sql="SELECT * FROM admin WHERE username='$us' AND password='$pw'"; //echo $sql; if (mysql_num_rows(mysql_query($sql))==1){ $uidd=mysql_fetch_array(mysql_query($sql)); $uid=$uidd[id]; $_SESSION[tornos]=$uidd[id]; $_SESSION[authority]=$uidd[authority_for]; $_SESSION[fname]=$uidd[fullname]; $_SESSION[user_image]=$uidd[user_image]; $_SESSION[user_code]=$uidd[user_code]; gotopage('welcome.php'); } else {$msg="Invalid User Name or Password";} } ?> TORNOS India Pvt Ltd.
Home
User Name :
Password :
   
 
Jump to Main Site