Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- For Massacre:
- INVALID QUERY
- <?php
- $result = mysql_query('SELECT * WHERE 1=1');
- if (!$result) {
- die('Invalid query: ' . mysql_error());
- }
- ?>
- VALID QUERY
- <?php
- // DIS B VALID QUERY NIGGA
- $username = 'root';
- $password = 'abcdefghijklmnopqrstuvwxyz';
- $query = sprintf("SELECT username, password
- WHERE username='%s' AND password='%s'",
- mysql_real_escape_string($username),
- mysql_real_escape_string($password));
- // ight so nao i b performin da query!1!1!!!
- $result = mysql_query($query);
- // did dis shit send?
- if (!$result) {
- $message = 'Invalid query: ' . mysql_error() . "\n";
- $message .= 'Whole query: ' . $query;
- die($message);
- }
- while ($row = mysql_fetch_assoc($result)) {
- echo $row['username'];
- echo $row['password'];
- }
- // END OF SCRIPT YOU NIGGER
- mysql_free_result($result);
- ?>
Add Comment
Please, Sign In to add comment