Hi John,
Not sure quite sure how you're trying to use the card id - but having written a few WAP sites (http://m-minimail.com) I know exactly what the problem is (wap phones need to be improved)!
The way I got round this problem was as follows:
##################################
if(!isset($i))
$i=0;
$No_Of_Hotels=$i+$max_hotels
if ($No_Of_Hotels>$total_hotels)
$No_Of_Hotels = $total_hotels
while($i<$No_Of_Hotels)
{
//display hotel here
$i++;
}
##############################
$i keeps track of how many hotels have been displayed in total
$max_hotels should be set to the maximum number of hotels you want on each page.
$total_hotels is the total number of hotels do be displayed over all the pages
After the while loop put in a link as follows:
#####################################
if($No_Of_Hotels<$total_hotels)
{
echo "<anchor>Next";
echo "<go href='$PHP_SELF?i=$i/>";
echo "</anchor>";
}
#######################################
i.e. test that you still have hotels to display. If so, make the current file call itself, passing it the new $i value - this will make the next card displayed start at the correct hotel.
Let me know if any of the above is incomprehensible!
Clarissa