datoshway Posted November 16, 2010 Share Posted November 16, 2010 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 More sharing options...
fenway Posted November 17, 2010 Share Posted November 17, 2010 Sorry, I don't follow. Link to comment https://forums.phpfreaks.com/topic/218872-combine-select-and-insert/#findComment-1135809 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.