Jump to content

array in query?


karimali831

Recommended Posts

Hi,

 

Instead of using the below, how can I generate an array for $row['ID'] and use the array in my query?

 

$query = mysql_query("SELECT ID FROM table WHERE 1on1='1'");
while($row=mysql_fetch_array($query)) {

$query2 = mysql_query("SELECT type FROM table2 WHERE ID='".$row['ID']."'");
}

 

 

Link to comment
https://forums.phpfreaks.com/topic/208480-array-in-query/
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.