Can anybody find me where is the error exactly as I'm getting really mad
This is my code:
$query = 'INSERT INTO mk_pay_wages (u_id, year_month, wage) VALUES (14, "2021-06", 900)';
echo $query . '<br>';
$mysqli->query($query) or die ($mysqli->error);
And this is the mySQL table:
And finally this is what it outputs:
INSERT INTO mk_pay_wages (u_id, year_month, wage) VALUES (14, "2021-06", 900)
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'year_month, wage) VALUES (14, "2021-06", 900)' at line 1