Hi guys I having some difficulties interacting with php code so I can execute the statement written in sql form i can't bind the other variables because im also doing some insert into select in just one statement can you help me out? thanks a lot in advance .
What im trying to do in this code is when a user is trying to sign up there username and password will be inserted into the account_table and at the same time the customer_IDno will be also fetch to be inserted in account_table to be a foreign key, I already got the statement but the problem is I don't know how to interact with the php code with these kind of statement here's the code for the SQL. hope you'll help thanks a lot
INSERT INTO customer_table
(customer_firstname , customer_middlename , customer_lastname ,
customer_email , customer_address , customer_contact)
VALUES ('Adrian','Manuel','Abrasaldo','Email','New York',09254872645);
INSERT INTO account_table(
account_username , account_password , customer_IDno)
SELECT '$username' , '$password' , customer_IDno
FROM customer_table WHERE customer_email = '$email')