Ok, I took out all my other code, and I will re-write it.
However, as for the snippet we were working on, $iID still doesn't echo.
But I did this:
while ($row = mysql_fetch_row($resultSR)){
$iID = $row['Product_ID'];
echo $iID."ya<BR>";
}//end while
}//end if
So although $iID is never echoed for some reason, ya is echoed for the right amount of times. Meaning if there are 4 results that should be sent back, ya is outputted 4 times, so at least the count is working good.
What I can do from here, is once $iID is echoed, I can display a number of links on this page going to the product detail page, I would just need the iID to be in the query string, which is easy, but since iID doesn't get echoed it's not possible.
Any idea why it doesn't get echoed?
thx
MK