leeboycymru
Programmer
This is the site:
Everything is working properly, but my boss asked if I could make all these hotels display randomly - so i said no problem and changed this:
to this:
He was happy, so it was left, then we started having complaints about in some cases you can have the same hotels on the second page as teh first page, so basically it was calling a random selection each time.
So is it possible to say display randomly but once the array has been formed in this case 494 hotels, the hotels stay put on the their pages, and the random display only does it once to display all 494 hotels, so when you click through and back the same hotels are displayed.
This this is going to be a tuffy for me.
cheers
Lee
Everything is working properly, but my boss asked if I could make all these hotels display randomly - so i said no problem and changed this:
Code:
$buildquery .= " order by t1.Rate_Num_Hot DESC";
to this:
Code:
$buildquery .= " order by RAND()
He was happy, so it was left, then we started having complaints about in some cases you can have the same hotels on the second page as teh first page, so basically it was calling a random selection each time.
So is it possible to say display randomly but once the array has been formed in this case 494 hotels, the hotels stay put on the their pages, and the random display only does it once to display all 494 hotels, so when you click through and back the same hotels are displayed.
This this is going to be a tuffy for me.
cheers
Lee