hey everyone! I am trying to group correctly in a second query by results based on the first. I need the second query to group all results from the first query by all duplicate host and ip where host and ip in the second query are grouped by either matching host or ip
sql=select host,ip from table group by host,ip
while loop {
$host=$row['host'];
$ip=$row['ip'];
sql=select all my fields from same table where host='$host' OR ip='$ip'
group by ?
}