islesrock36 Posted August 20, 2009 Share Posted August 20, 2009 I'm making a web form using php where i have multiple text boxes and when the forum is submitted the information from the textboxes goes to different tables in the database and i was wondering if it is possible to use one forum to do multiple inserts into different tables in one database.i tired many different things but cant get it to work??? INSERT INTO table_name VALUES (value1, value2, value3,...) INSERT INTO table_name1 VALUES (value1, value2, value3,...) INSERT INTO table_name2 VALUES (value1, value2, value3,...) Should this be in 1 query or multiple queries?? please help??? Quote Link to comment https://forums.phpfreaks.com/topic/171135-insert-multiple-tables-sql-php/ Share on other sites More sharing options...
trq Posted August 20, 2009 Share Posted August 20, 2009 You cannot execute multiple queries using the standard mysql* library. Quote Link to comment https://forums.phpfreaks.com/topic/171135-insert-multiple-tables-sql-php/#findComment-902471 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.