PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
create table users (username int, password int); insert into users values (1,1);
Copy Clear
Copy Format Clear
<?php $username = "' OR '1'='1"; $password = ""; $query = "SELECT * FROM users WHERE username = '$username' AND password = '$password'"; $result = mysqli_query($mysqli, $query); var_dump($result->fetch_all()); $query = "SELECT * FROM users WHERE username = '1' AND password = '1'"; $result = mysqli_query($mysqli, $query); var_dump($result->fetch_all());
Show:  
Copy Clear