I am using postman to test my api and this is a post request.
when i put the request url in postman it should say http://localhost:3000/product/1/food/ with the 1 being :id in my code
I want to execute this sql statement in my node.js
INSERT INTO food (userid, rating, fooditem) VALUES (?, ?, ?) WHERE productid=?'
productid is my :id
the foodid and timestamps are auto incremented
but it gives me
ER_PARSE_ERROR
I have tried using
UPDATE food
SET userid=? , rating=? , review=?
WHERE productid=?
based off other posts I have found here, however nothing pops up in my table when i do this although it is not counted as an error in my code
What should I do? thank you
