Page 1 of 1

New to php ... but how do i do this ...

Posted: Thu Mar 16, 2006 2:38 pm
by trevorb
Hi Guys,

Very new to php so excuse any stupid questions.

One of my sites has a product search, when a search is performed (between 2-10 fields) it takes quite sometime for the database to return the results.

Im worried that because the search is taking say 5-12 seconds my users are trying to refresh or leave the site.

I found a answer to this and it can be seen on the site teletextholidays.co.uk - if you perform a search on this holiday site it displays a graphic like a timer so that the users know the site is still processing the search.

So the steps are ...

1) Submit a search
2) Page displays with a timer graphic
3) Once the database returns the results the display page with the timer graphic is redirected to display the search results.

So my question is ... how do i do this using php ?

Thanks
Trevor

Posted: Thu Mar 16, 2006 3:04 pm
by feyd
if server based, it's usually a "HTTP push" .. if client based, it's just Javascript substituting content until the data is returned.

Moved to PHP - Code until further notice.

Posted: Thu Mar 16, 2006 3:36 pm
by trevorb
Can anyone explain in more detail ?
any sample code out there ?

Thanks