Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ini_set('display_errors', 1);
- ini_set('display_startup_errors', 1);
- error_reporting(E_ALL);
- /* Connection */
- try {
- $db = new PDO("mysql:host=localhost;dbname=kurye_fiyatlama", "root", "qweASD123");
- } catch ( PDOException $e ){
- print $e->getMessage();
- }
- $stmt = $db->prepare("select * from users_table WHERE username=:username and password=:password");
- $stmt->execute(['username' => $username, 'password' => $password]);
- $user = $stmt->fetch();
- foreach ($data as $user) {
- if($_POST["username"] = $data["username"] && password_verify($_POST["password"], $data["password"])){
- header('Location: dataentry.php');
- }
- }
- ?>
Add Comment
Please, Sign In to add comment