Can anyone lend me a hand here?
I am trying to pull data from a second sql query using a where clause = two fields from the first query. I am trying to gather from the second query, any data where we have a match from either of the two in the where clause.
sql=my select 1,2 from t1
while $row {
$one=$row[1];
$two=$row[2];
sql=select 1,2 from t2 WHERE 1 = '$one' or 2 = '$two' group by 1,2
while $row2 {
//trying to output all rows that either 1 or 2 from t2 match 1 or 2 from t1.
so all grouped results from 1 display all unique results in 2
all grouped results from 2 dispaly all unique results in 1 where either 1 from t1 = 1 from t2 or 2 from t1= 2 from t2.
}
}