PHP and MySQLi – Cannot pass parameter 2 by reference in [duplicate]

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);

Leave a Comment