Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://stackoverflow.com/questions/4015324/http-request-with-post
- <?php
- $con = new mysqli('localhost','s549_apex','lEroR','s49_apex');
- $username = $con->real_escape_string($_POST["username"]);
- $password = $con->real_escape_string($_POST["password"]);
- $password =md5($password);
- $sql = "select * from users where username='$username' and password='$password'";
- $res = $con->query($sql);
- $check = $res->fetch_array();
- if(isset($check)){
- echo "true";
- }else{
- echo "false";
- }
- mysqli_close($con);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement