Jason,
Thanks. That's what I was needing.
I'm mot sure if my use of ternary operators in the concatenation is correct but it is working.( I need the ternary operators for something else I am trying to work on.)
Here is what I ended up with.
<?php
session_start();
$id[] = ($_SESSION['Step_1'] >= 1 ? $_SESSION['Step_1'] : '') . "," . ($_SESSION['Step_2'] >= 1 ? $_SESSION['Step_2'] : '') . "," . ($_SESSION['Step_3'] >= 1 ? $_SESSION['Step_3'] : '');
foreach ($id as $key => $pid){
}
?>
Recordset:
SELECT ProductID FROM tblProducts WHERE ProductID IN ($pid)
Thanks,
TroyD