hi Jason.
maybe i'm missing something here.
if i use the code you posted, (but changing field names accordingly)
i get a lot of rows declaring
Notice: Undefined offset: 5
up to ...
Notice: Undefined offset: 24
on line 353 which is
<?php if($_SESSION["criteria"][$j] == $row_rslastfiveviewed['ItemID']) { ?>
where i change $j to $i this gets rid of the error, but gives me the wrong order
**UPDATE
i just set my page to stop displaying all errors, and the undefined offset error disappears, but i only get one row returned.**
i then tried redeclaring my criteria array as you example, so now my sql statement reads..
SELECT ItemID, ItemTypeID, ItemName, ItemImageURL, ItemThumbnailURL FROM tblitem WHERE ItemID = 2 OR ItemID = 13 OR ItemID = 6 OR ItemID = 20
I only get one row returned, item id 2
i then changed the order of the array, swapping 2 and 13 around, and item id 2 (only) is still returned.
very odd.
never mind, i appreciate your help, there must be something else amiss.