Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. <?php
  2. if($_SERVER['REQUEST_METHOD']=='POST'){
  3. $username = $_POST['username'];
  4. $password = $_POST['password'];
  5. $sql = "SELECT * FROM main_member WHERE username='$username' AND password='$password'";
  6. require_once('connect.php');
  7. sql $result = mysqli_query($con,$sql);
  8. $check = mysqli_fetch_array($result);
  9. if(isset($check));
  10. {
  11. echo "success";
  12. }else{
  13. echo "Gagal";
  14. }
  15. mysqli_close($con);
  16. }
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement