Advertisement
Guest User

Untitled

a guest
Feb 5th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.75 KB | None | 0 0
  1. <html>
  2.  
  3. <head>
  4.  
  5. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js" type="text/javascript"></script>
  6.  
  7. </head>
  8.  
  9. <body>
  10.  
  11. <?php   session_start();
  12.     $myusername = $_REQUEST['myusername'];
  13.     $mypassword = $_REQUEST['mypassword'];
  14.     $myconn2=mysql_connect("co-project.lboro.ac.uk",crew01,tpg34wfr);
  15.     mysql_select_db("crew01",$myconn2);
  16.  
  17.     $strSQL="SELECT Dept_Code, password FROM Department";
  18.     $result2=mysql_query($strSQL, $myconn2);
  19.     $check=0;
  20.     while($row=mysql_fetch_array($result2)){
  21.     if($row["Dept_Code"] == $myusername && $row["password"] == MD5($mypassword)){$check=1; //josh
  22.     }
  23.    
  24.     if($check==1){header("joe and josh link goes here");}//Guys plz fix
  25.     if($check==0){header("location:error.php");}   
  26. ?>
  27.  
  28.  
  29.  
  30. </body>
  31. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement