Uncaught PDOException: SQLSTATE[21S01]: Insert value list does not match column list
So i’ve tried for the past hours to make sense of this Exception but it keeps saying the insert value list doesn’t match column list. This is the code for my php: function insert_data($humidity, $temperature, $sensor_id, $log_time) { $conn = db_connect(); //connects to database $sql = "INSERT INTO data(humidity, temperature, log_time, sensor_id)\n" . "VALUES ($humidity,… Read More Uncaught PDOException: SQLSTATE[21S01]: Insert value list does not match column list