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()); Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/218872-combine-select-and-insert/#findComment-1135809 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.