close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

search crash...

Thread began 10/15/2009 5:13 am by pejmanfallahi244687 | Last modified 10/16/2009 12:59 pm by Eric Mittman | 622 views | 1 replies |

pejmanfallahi244687

search crash...

Hi,
I have 3 join table with many to many relation to another table, and keep the info of users. in search, I have 2 drop down which are depended (the first one is category and the second one is subcategory - " get the value from many to many table" -), also some users didnt set their sub category.(the sub category value store in many to many table)

Problem: when we choose only category,we get result, if we choose category and subcategory, the browser try to show the result but after some minutes, time out, and it crashing and show some incorrect result.

i think it happen, because, users didnt set the sub category and it loops in the database to find it and then crashes. can we personalize the search to show, if it has subcategory show if not remove from result page ?

the second problem, i want the search session be clean after some minute or if they left the page!(only search session).? because,if user search and come back again they see the result , not the whole record (we have also the reset)
please help with that.

PHP/mySQL

thank you

Sign in to reply to this post

Eric Mittman

If your search is timing out it would indicate that the query is taking too long to execute. This is likely because of the complexity of the query and the responsiveness of the database.

In PHP you can extend the timeout period for a script with this code:

php:
<?php set_time_limit(number of seconds); ?>



You just need to add in the number of seconds that you would like to allow the script to run.

As for the issue you are getting with incorrect results please explain this a little more. The time that it takes the query to execute should have no impact on the results that are returned.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...