I keep getting the following warning:
[04-Dec-2014 06:51:49 UTC] PHP Warning: mysqli_stmt_bind_param() expects parameter 1 to be mysqli_stmt, boolean given in xxx.php on line 48
[04-Dec-2014 06:51:49 UTC] PHP Warning: mysqli_stmt_execute() expects parameter 1 to be mysqli_stmt, boolean given in xxx.php on line 49
[04-Dec-2014 06:51:49 UTC] PHP Warning: mysqli_stmt_close() expects parameter 1 to be mysqli_stmt, boolean given in xxx.php on line 50
In my (limited) experience, this means the MYSQL query I've inputted is wrong. However, I've checked my code -- it works, yet sometimes it throws this error. What is going on? Relevant code is below.
$stmt = mysqli_prepare($con, "UPDATE xxx SET yyy = ?, zzz = ?, timecheck = NOW(), aaa = ? WHERE bbb = '$ccc'");
mysqli_stmt_bind_param($stmt, "dss", $abc, $def, $ghi);
mysqli_stmt_execute($stmt);
mysqli_stmt_close($stmt);
$abc is a float, $def is NULL, and $ghi is a string. Could the issue be that $ccc is sometimes not holding the value it is supposed to?
Help, please!