Advertisement
Guest User

Untitled

a guest
Jun 14th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. ­<?php
  2. require('db.php');
  3. $username = $_POST['username'];
  4. $password = $_POST['password'];
  5. $query = "SELECT user, password FROM user WHERE user = '".$username."';";
  6. $result = mysql_query($query);
  7. while ($prend = mysql_fetch_row($result)) {
  8. echo $prend[0];
  9. }
  10. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement