close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


search crash...

Thread began 10/15/2009 2:13 am by pejmanfallahi244687 | Last modified 10/16/2009 9:59 am by Eric Mittman | 927 views | 1 replies |


search crash...

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.


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 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





Ease of use


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...