Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This is a php snippet that you could use to reproduce such issue:
- $host = 'localhost';
- $user = '';
- $pass = '';
- $db = '';
- $con = new \mysqli($host, $user, $pass, $db);
- if ($con->connect_errno) {
- die("Connect failed: " . $con->connect_error);
- }
- $con->set_charset("utf8");
- $sql = 'SELECT * FROM TABLE_NAME WHERE param like ?';
- $query = $con->prepare($sql);
- $query->bind_param('s', $param);
- $query->execute();
- $result = $query->get_result()->fetch_row();
- just adapt it so it can connect to a database and fetch something from
- a table using that prepared statement and you should get that error.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement