if(isset($_POST['username'])){ ob_start(); include "dbconf.php"; $theusername = $_POST['username']; $thepassword = $_POST['password']; $sql = "SELECT * FROM $tbl_name WHERE email='$theusername' and password=md5('$thepassword')"; $result = mysql_query($sql)or die(mysql_error()); $row = mysql_fetch_array($result); $thepriviledge = $row["priv"]; $count = mysql_num_rows($result); $command = $row["command"]; if( $count == 1){ if($command == "1"){ session_register("theusername"); session_register("thepassword"); session_register("thepriviledge"); header("location:Forstudents.htm"); }else{ echo "User Suspended"; } }else { header("location:loginfail.htm"); } ob_end_flush(); } ?>
W |
E
N E R G I Z E D |
S t u d e n t W i n d o w L o g i n |
---|
If you are a Qinway Qigong Retreat student, please type
in Username (your e-mail address) and Password to proceed.
|