puntapuisomos Posted March 30, 2008 Share Posted March 30, 2008 I get three values after a distinct-query. <? $querydd = "Select distinct(smth) From offer WHERE whatever='2' Order By smth"; $resultdd = mysql_query($querydd); while($smth = mysql_fetch_row($resultdd)) { echo ("$smth[0]<br>"); } ?> Let's say the echo gives this1, this2 and this3. Now I want to start another query in which "this1" must be put in a where-clause. How van I turn the this1, this2 and this3 into a $this1 $this2 and $this3? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/98608-select-distinct-and-attributes/ 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.