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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
trevorb
Forum Newbie
Posts: 2
Joined: Thu Mar 16, 2006 2:29 pm

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

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
trevorb
Forum Newbie
Posts: 2
Joined: Thu Mar 16, 2006 2:29 pm

Post by trevorb »

Can anyone explain in more detail ?
any sample code out there ?

Thanks
Post Reply