I am trying to make a function which will check update and insert some data but I am having an issue in the first step where the $stmt->bind_param is saying that is not p
You cannot do this in mysqli:
$stmt->bind_param("ii",0,$victimiid);
The 0 needs to be a variable.
0
Try this:
$zero = 0; $stmt->bind_param("ii",$zero,$victimiid);