Advertisement
Guest User

Untitled

a guest
Dec 16th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <?php
  2. $pass=$_post["passadmin"];
  3. $username=$_post["usernameadmin"];
  4. $query="select * from admin where Password=$pass and username=$usernameadmin";
  5.  
  6. $conn=mysql_connect("localhost","root","123");
  7. if(!$conn)
  8. die("cannot connect to database");
  9. $DB=mysql_select_db("school",$conn);
  10. if(!$DB)
  11. die("error");
  12. $res=mysql_query($query,$conn);
  13. if(!$res)
  14. print("not execut query");
  15. else
  16. {
  17. $row=mysql_fetch_array($res);
  18. if(!$row)
  19. print("not found");
  20. else
  21. print(<a href="">);
  22.  
  23.  
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement