Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (isset($_GET['username']) AND isset($_GET['password']))
- {
- $bdd = new PDO('mysql:host=localhost;dbname=mybb;charset=utf8', 'root', '');
- $req = $bdd->prepare('SELECT * FROM mybb_user WHERE username = ? LIMIT 1');
- $req->execute(array($_GET['username']));
- if ($account = $req->fetch())
- {
- $hashpass = md5(md5($account['salt']).md5($_GET['password']))
- if ($hashpass == $account['password'])
- echo "ça marche !"
- else
- echo "non"
- }
- }
- ?>
- ERREUR -> ( ! ) Parse error: syntax error, unexpected 'if' (T_IF) in C:\wamp64\www\onAccount.php on line 13
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement