Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (isset($_POST['username'])) {
- $username = $_POST['username'];
- }
- if (isset($_POST['password'])) {
- $password = $_POST['password'];
- }
- $password = md5($password);
- $connect = mysql_connect("localhost", "root", "");
- mysql_select_db("TagDB");
- $query = mysql_query("SELECT * FROM tagusers WHERE username = '$username' AND password = '$password'");
- while ($e = mysql_fetch_assoc($query)) {
- $output[] = $e;
- }
- if (isset($output)) {
- print json_encode($output);
- }
- mysql_close();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement