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 functions not working

Thread began 6/14/2010 5:03 pm by koerbcm | Last modified 6/14/2010 9:10 pm by Eric Mittman | 632 views | 1 replies |


Search functions not working

I have a website that has both front and back end pages. I am having numerous problems with the search functions for both. I have 4 tables in my database. locations, category, users, jobs.

I have had a friend help me with inner joins on the jobs tables so i am able to display category name and location name instead of their id's. I am not sure if this is what caused it but now on the back end the search displays all the results all the time. The front end will allow me to search using the job id, but nothing else. When i try and use the cat name or loc name it tells me "Column 'cat_id' in where clause is ambiguous". I have been working on this problem for quite a few days and have got turned around pretty well.

I also have some other questions about adding things like "Any or All" options to drop down lists to allow to search for everything without having to narrow the terms down.

I am pretty new to PHP as well as what all the variables being thrown around are like $_Get and $_Post. So if there is any good document that can help me understand how all of this works and interacts that would be awesome too.

Attached Files
Sign in to reply to this post

Eric Mittman

If you alter the search recordset you can get errors like this. The error is telling you that you have specified columns that exist in more than one table without specifying what table the column should be coming from. You will need to qualify the name of the column with the table name first:


DataAssist is designed to work with a single table. You can alter the code after the fact like this but you may not get the desired results. If you see all the results regardless it means that you are not triggering the DataAssist Search sever behavior. On your results page it looks like the trigger is set to $_GET['Search'] so if you don't see this in the URL when you are on the results page then it is not going to trigger the new search.

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