Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function login($u, $p) {
- $db_u = 'root';
- $db_p = 'lol';
- $db = new pdo('mysql:host=130.211.168.124:3306;dbname=dropcloud',
- $db_u,
- $db_p
- );
- $statement = $db->prepare('SELECT * from users WHERE username = :username AND password = :password');
- $statement->execute(array(':username' => $u, ':password' => $p));
- $row = $statement->fetch();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement