I have this code:
$stmt8 = $conn->prepare("UPDATE centralizator_alerte 
                SET nr_alerte_nevalidate= nr_alerte_nevalidate-1,
                    nr_alerte_confirmate= nr_alerte_confirmate+1, 
                    timp_total_raportare_catalogare = timp_total_raportare_catalogare+?,
                    timp_mediu_raportare_catalogare=timp_total_raportare_catalogare/(nr_alerte_confirmate+nr_alerte_incorect_raportate+nr_alerte_gresit_raportate) 
                WHERE id_problema = ?");
$stmt8->bind_param("ss", $timp_raportare_catalogare, $id_problema);
$stmt8->execute();
Checking the error_log shows me that 
[14-May-2020 14:23:58 Europe/Bucharest] PHP Fatal error: Call to a member function bind_param() on boolean in .... on line 162
Line 162 it's the bind_param that I added above. Having this error made me believe that the prepare returned false, so I copy-pasted the entire query in my SQL database and ran it, using values instead of ?, and it worked, the update updated my table. So, the next step was about the variables that I use in bind_param, so I checked them right before the $stmt and echo-ing them showed me that the values are alright indeed. I ran out of things to check, so I would like to ask if someone sees anything else?
 
    