Forum Moderators: coopster
while ($row = mysql_fetch_assoc($sqlResult))
{
$tot_query = print_r($row, true);
}
//
// in first page
//
$tot_ids = "0";
while ($row = mysql_fetch_assoc($sqlResult))
{
$tot_ids = ",".$row['id'];
}
// this will produce a something like $tot_ids = "0,3,6,12,34,56";
//put this into a hidden field in your form
// example: <input name="hidden_ids" type="hidden" value="<? echo $tot_ids;?>">
on the next page...
$ids_check = $_POST['hidden_ids'];
$query = "Select ids FROM {table_name} WHERE ids IN ($ids_check)"
Is this what you are looking for?