Jump to content

Combine Select and Insert


datoshway

Recommended Posts

Code below to display the results.

 

$result = mysql_query("SELECT description FROM xxtypesxx WHERE type = '$type'") or die(mysql_error());	

 

I need this to also insert that data it's displaying $type into another database and combine it with a user ID.  Here is a sample query of the user ID

 

$result = mysql_query("SELECT * FROM xxresults_tablexx WHERE ((userid = '$formid') AND (title LIKE '15.0%') AND (points = '401'))") or die(mysql_error());

 

Link to comment
https://forums.phpfreaks.com/topic/218872-combine-select-and-insert/
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.