Asheeown Posted January 29, 2007 Share Posted January 29, 2007 I have a search script that allows users to search through logs and it takes a few seconds to load the results, but the problem is whenever you search, instead of the labels for the results coming up before the query goes through, the query runs first and makes it so they have to wait till the query is done to see even the labels for the results, how can I have the labels come up first then run the query Link to comment https://forums.phpfreaks.com/topic/36240-search-pages/ Share on other sites More sharing options...
Psycho Posted January 29, 2007 Share Posted January 29, 2007 You can't. There are some posible workarounds. Such as having the page load with just the regular page content and the labels and then querying the data via AJAX and populating it that way, using a frame, as well as others.But instead of treating the symptom, how about curing the problem? There's probably a good chance that the query could be reformatted to take a much shorter period of time to where you wouldn't even need to think about a solution as you proposed. Why don't you show us the script you have for doing the query and perhaps giving some details of your database and maybe someone can provide a better method. Link to comment https://forums.phpfreaks.com/topic/36240-search-pages/#findComment-172245 Share on other sites More sharing options...
Asheeown Posted January 29, 2007 Author Share Posted January 29, 2007 I've went through many steps and am even paying a very recommended professional to go through the table piece by piece formatting it correctly and revising my query. Link to comment https://forums.phpfreaks.com/topic/36240-search-pages/#findComment-172249 Share on other sites More sharing options...
Psycho Posted January 30, 2007 Share Posted January 30, 2007 OK, but advice here is free. Link to comment https://forums.phpfreaks.com/topic/36240-search-pages/#findComment-172529 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.