Jump to content

mysql INSERT from multiple sources


sunfighter

Recommended Posts

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......??

Link to comment
https://forums.phpfreaks.com/topic/211006-mysql-insert-from-multiple-sources/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.