Hey everyone,
I'm pulling results from a database in a fairly standard way.
Obviously this isn't exact, it's just to give you an idea how I'm making the call just in case it matters.
$query = "Select * FROM <table> WHERE <criteria>";
$result = mysql_query($query)
$numofrows = mysql_num_rows($result);
for ($i=0; $i < $numofrows; $i++){
$var = mysql_result ($result, $i, "col name");
// Display looped results
}
All this gets me nifty results row by row of course. And I print those results to the screen.
What I need to do, is then take the entire page of results (not the individual rows) and generate secondary results from it.
In my case, if -
Row 1 results has A and B
Row 2 results has B and C
Row 3 results has A and D
I need say if A and D (from row 1 and 3) is present then print that X is available.
I haven't been able to find a way to handle the secondary results. Can anyone point me in the right direction?
Thanks for reading!