sunfighter Posted August 17, 2010 Share Posted August 17, 2010 This should be simple, I want to insert data into a single table from a second table AND a FORM. The FORM is a textarea string. The submit button starts the INSERT INTO request (A DATABASE), but I want to include two columns from a second database called members. The two columns in members is name and id. so the query looks like : INSERT INTO request ( text, name, id) FROM --- how do I do that VALUES ($message) VALUES (name,id) FROM members......?? Quote Link to comment https://forums.phpfreaks.com/topic/211006-mysql-insert-from-multiple-sources/ Share on other sites More sharing options...
Pikachu2000 Posted August 17, 2010 Share Posted August 17, 2010 OK, but how are you going to determine which record's name and id field should be used? You should already have selected the record somewhere, no? Quote Link to comment https://forums.phpfreaks.com/topic/211006-mysql-insert-from-multiple-sources/#findComment-1100554 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.