I have say two tables(for simplicity) in a database and one form which
collects the data from the user and sends it to this php page from
where i have to execute the two insert queries which will insert the
values into the database!
Problem!!!
http://php.net/manual/en/function.mysql-query.php
I think mysql does not support multiple queries (not sure though)
I just now realised that it is only executing one query (the first one
which comes)
mysql_query($sql1, $conn);
mysql_query($sql2, $conn);
Like here it executes $sql1 only. If I commentise it (or whatever you
call it) then it executes $sql2!
Should I kindof concatenate the two queries in one single query string
variable and if yes, how would I do that exactly! Assume they are
insert queries on two different tables!
Please reply soon... Need to know urgently!
Thank you!
Regards!