I am trying to create a procedure that will insert two columns into a table. I need to create a procedure that I could use in vb.net for creating mailboxes
The procedure that I created is:
PROCEDURE 'create_mail' (IN em VARCHAR(20),IN pas VARCHAR(20),OUT ans INT )
INSERT INTO 'mail.mailbx' ('email','pasword') VALUES ('em', ENCRYPT('pas'))
When I am executing in phpMyAdmin its work, it creates columns that I choose in 'mail.mailbx', but I need to check if em
exist in 'mail.mailbx', if exist create ans
as integer = 'o' or something like that, if no exist run "insert into..." and create 'ans' as integer ='1'. from vb.net I will be create msgbox's that let me know if mailbox was created or not created from parameter 'ans'.