Advertisement
Guest User

Untitled

a guest
Apr 29th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. This is a php snippet that you could use to reproduce such issue:
  2.  
  3. $host = 'localhost';
  4. $user = '';
  5. $pass = '';
  6. $db = '';
  7. $con = new \mysqli($host, $user, $pass, $db);
  8.  
  9. if ($con->connect_errno) {
  10. die("Connect failed: " . $con->connect_error);
  11. }
  12.  
  13. $con->set_charset("utf8");
  14.  
  15. $sql = 'SELECT * FROM TABLE_NAME WHERE param like ?';
  16.  
  17. $query = $con->prepare($sql);
  18. $query->bind_param('s', $param);
  19. $query->execute();
  20.  
  21. $result = $query->get_result()->fetch_row();
  22.  
  23. just adapt it so it can connect to a database and fetch something from
  24. a table using that prepared statement and you should get that error.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement