You cannot do this in mysqli:
$stmt->bind_param("ii",0,$victimiid);
The 0
needs to be a variable.
Try this:
$zero = 0;
$stmt->bind_param("ii",$zero,$victimiid);
More Related Contents:
- Turning query errors to Exceptions in MySQLi [duplicate]
- Should we ever check for mysqli_connect() errors manually?
- How to prevent duplicate usernames when people register?
- How to use mysqli prepared statements?
- How to solve “Fatal error: Class ‘MySQLi’ not found”?
- Why can’t I run two mysqli queries? The second one fails [duplicate]
- Call to a member function prepare() on a non-object PHP Help
- Should I manually check for errors when calling “mysqli_stmt_prepare”?
- mysqli last insert id
- mysqli: can it prepare multiple queries in one statement?
- CodeIgniter: Unable to connect to your database server using the provided settings Error Message
- MySQLi query returns only one row
- How to call a MySQL stored procedure from within PHP code?
- How do I migrate my site from mysql to mysqli? [duplicate]
- Converting MySQL result array to JSON [duplicate]
- Fatal error: Cannot use object of type mysqli_result [closed]
- Do I have to guard against SQL injection if I used a dropdown?
- Inserting data to table (mysqli insert) [duplicate]
- Using MySQLi from another class in PHP
- How to echo a MySQLi prepared statement?
- How do I display a MySQL error in PHP for a long query that depends on the user input? [duplicate]
- MySQLi prepared statements with IN operator [duplicate]
- MySQLI binding params using call_user_func_array
- mysqli_select_db() expects parameter 1 to be mysqli, string given
- What does the mysqli_error() expects parameter 1 to be mysqli, null given mean?
- Unknown database error in PHP but it exists in PHPMyAdmin
- Can I blindly replace all mysql_ functions with mysqli_?
- Is mysqli_real_escape_string safe?
- Strange problem with the length of the field gotten from database [duplicate]
- Single Result From SUM With MySQLi