close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Get rid of results or "no results" message when search and results are on same page

Thread began 1/22/2010 12:49 am by djogrady376174 | Last modified 1/22/2010 2:50 pm by Jimmy Wu | 726 views | 3 replies |

djogrady376174

Get rid of results or "no results" message when search and results are on same page

I put my search form and the results on the same page. However, when the page first loads, I get either (1) a display of records (if the WHERE clause is set to 0=0), or (2) a "no results found" message (if the WHERE clause is set to 0<>0).

I don't want either (1) or (2) to display when the page first loads. Is there a way to accomplish this?

Sign in to reply to this post

Jimmy Wu

You can accomplish this by passing an additional url variable and set this to true or false. You can then set a show if section around the results/message section to check that url variable to see if its true or false, and display the results/message section. Also if the url variable is not set the results/message section should not be shown.

Sign in to reply to this post

djogrady376174

Get rid of results or "no results" message when search and results are on same page

Hi Jimmy,

Forgive my ignorance, but I don't know how to pass an additional url variable and set this to true or false. Do you have some instructions on passing additional url variables?

Sign in to reply to this post

Jimmy Wu

The url variable is just the variables that you can append to the end of the url.

someurl.com?myurlvar=true&secondurlvar=false

Here is a PHP block that will display a variable named test:
<?php echo $_GET['test']; ?>

You can check if the variable is set by calling the isset function call around the variable like this:
isset($_GET['test']);

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