Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. $dbhost = 'localhost';
  2. $dbuser = 'root';
  3. $dbpass = '';
  4. $dbname = 'database';
  5. $appname = "Robin's Nest";
  6. $connection = new mysqli($dbhost, $dbuser, $dbpass, $dbname);
  7.  
  8. function queryMysql($query)
  9. {
  10. global $connection;
  11. $result = $connection->query($query);
  12. if (!$result) die($connection->error);
  13. return $result;
  14. }
  15.  
  16. $query = "SELECT `id` FROM `user` WHERE email=$lg_email password=$lg_pass";
  17. queryMysql($query);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement