User2103319870 posted
My procedure is not working, but cannot find out why it is not working,
You are using single quotes when using paramters, so the value which will pass to query is '@Email' instead of the value in variable.
Try removing the single quotes like below
BEGIN
IF EXISTS (select * from customers where Email = @Email) THEN
update customers set Ordernr = Ordernr + 1 where Email = @Email;
ELSE
insert into klanten (Email, Ww, FirstName, LastName, expenses) values (@Email, @Ww, @FirstName, @LastName, @expenses);
END IF;
END