jimfog Posted October 3, 2011 Share Posted October 3, 2011 Suppose that a form sends 3 variables to a php script. The php code there puts the data from the form in the database. The question is the following: In order to put the 2 data to one table and the remaining one in another do i have to write 2 queries or the above can be accomplished with 1 query. In general i know mysql syntax, i just do not know in the above scenario what can be done-or not. Link to comment Share on other sites More sharing options...
justsomeguy Posted October 3, 2011 Share Posted October 3, 2011 You need to use 2 queries. An insert query adds data to one table. Link to comment Share on other sites More sharing options...
jimfog Posted October 3, 2011 Author Share Posted October 3, 2011 That was the answer i expected. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.