Im struggling on and now it stopped with an error on the WHERE clause. Cant find the solution to this. If i do SELECT * FROM booking_customer WHERE date_booking_customer = date_input AND time_booking_customer = time_input;
its works just fine but together with the rest theres a varning infront of WHERE...
CREATE DEFINER=`root`@`localhost`
PROCEDURE `book_service`(
date_input DATE,
time_input TIME,
name_input VARCHAR (200),
member_input TINYINT,
boatname_input VARCHAR (200),
email_input VARCHAR (200),
mobile_input VARCHAR (200)
)
BEGIN
INSERT INTO booking_customer(
name_booking_customer,
member_booking_customer,
boatname_booking_customer,
mail_booking_customer,
mobile_booking_customer)
VALUES (
name_input,
member_input,
boatname_input,
email_input,
mobile_input)
WHERE date_booking_customer = date_input
AND time_booking_customer = time_input;
END
/Svante