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


Adding second search varible to search and results page.

Thread began 4/24/2013 5:53 am by Jon Cunningham | Last modified 4/24/2013 12:11 pm by Jon Cunningham | 237 views | 2 replies |

Jon CunninghamBeta Tester

Adding second search varible to search and results page.

I have a database for users that lists their respective business details, very much a directory. In the database I have a column that is called featured.
Default is set to `0`. Those that are featured it is set to `1` from the admin panel.

I have a search page that lists businesses by city or county when a search is performed.
What I am trying to achieve is this; when someone searches for a business I would like those that have a `1` set in the database to be at the top of the results page for that search.

So when someone searches for a business in say Birmingham, all the business in the Birmingham area are on the results page (this works fine by the way) and those business in Birmingham that have a featured (`1`) in the database are listed at the top of the results page.

I would be grateful for any direction in completing the second part of the search / result page that will accomplish having the featured businesses at the top of the results page.

Many thanks for everyone’s time.
Kind regards

Sign in to reply to this post

Jason ByrnesWebAssist

update the recordset used on the results page and add an ORDER by clause to order by the featured column:

ORDER BY featured DESC

Sign in to reply to this post

Jon CunninghamBeta Tester

Hi Jason, That works great.

Many Thanks

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