Create procedure sp_validatelogin(IN email varchar(50), IN ppassword VARCHAR(50)) BEGIN if exists(Select * From user_details Where `email`=email And `password` = ppassword) THEN SELECT 1; else select 0; END;
-[Err] 1064 - 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 '' at line 10.
Create procedure sp_validatelogin(IN email varchar(50), IN ppassword VARCHAR(50)) BEGIN if (Select * From user_details Where `email`=email And `password` = ppassword) THEN SELECT 1; else select 0; END;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)