overdosedgames Posted April 8, 2012 Share Posted April 8, 2012 I want result of this as a variable foreach($results as $result) { echo "(filename = '".$result['filename']."') OR "; } what I essentially want $pick = foreach($results as $result) { echo "(filename = '".$result['filename']."') OR "; } but that doesn't work Quote Link to comment Share on other sites More sharing options...
dcro2 Posted April 8, 2012 Share Posted April 8, 2012 $pick = ""; foreach($results as $result) { $pick .= "(filename = '".$result['filename']."') OR "; } Read String Operators. Quote Link to comment Share on other sites More sharing options...
overdosedgames Posted April 8, 2012 Author Share Posted April 8, 2012 great thanks Quote Link to comment 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.