INSERT INTO booking contactnumber
isn't correct, no. Assuming contactnumber is a column name then
INSERT INTO booking (contactnumber) ...
INSERT INTO booking (contactnumber)
would be correct.
Documentation: https://dev.mysql.com/doc/refman/8.0/en/insert.html
See also this guide on how to get the real mysqli error, to make to easier to fix problems like this: https://stackoverflow.com/a/22662582/5947043
2.1m questions
2.1m answers
60 comments
57.0k users