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 Behavior WHERE question.

Thread began 2/14/2011 12:32 am by troyd | Last modified 2/15/2011 5:34 am by troyd | 1765 views | 14 replies


Search Behavior WHERE question.

Is it possible to set the SQL or maybe a session to include a keyword before a search is performed?
What I am needing is for the page to show all records with a particular criteria when the user first visits. Then change if a search is performed.

We have a column in the table called 'status'. There are 3 possible values. 0, 1, 2 which represent "Available", "On Hold" and "Sold".
We need just the "Available" records to show when they first visit the page and don't do anything. But if they click the link for "Sold", then all the records marked "Sold" will show.

The search behavior is already in place and working just fine. I created a URL variable called "Status" and used echo $_GET['Status']; in the search behavior's value for comparison.

The link that triggers the "Sold" looks like this somepage.php?Status=2, and so on.

So I have tried to mess with the "Where" statement in the search behavior but with no luck. Should I be doing this in the SQL statement first?

I can provide more of my code if needed.


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