Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js" type="text/javascript"></script>
- </head>
- <body>
- <?php session_start();
- $myusername = $_REQUEST['myusername'];
- $mypassword = $_REQUEST['mypassword'];
- $myconn2=mysql_connect("co-project.lboro.ac.uk",crew01,tpg34wfr);
- mysql_select_db("crew01",$myconn2);
- $strSQL="SELECT Dept_Code, password FROM Department";
- $result2=mysql_query($strSQL, $myconn2);
- $check=0;
- while($row=mysql_fetch_array($result2)){
- if($row["Dept_Code"] == $myusername && $row["password"] == MD5($mypassword)){$check=1; //josh
- }
- if($check==1){header("joe and josh link goes here");}//Guys plz fix
- if($check==0){header("location:error.php");}
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement