Simple MySql Search; No Results Found Result

Hi all,
Quick question. I've set up a search page in Dreamweaver,
which searches my Mysql database for whatever the given entry is.
It's a basic setup, the search page is on search.php, the results
page on results.php, and it seems to work pretty well. However, I
can't seem to figure out how to have Dreamweaver echo back "No
Results Found" if nothing is found for the search. Right now, if I
search for anything, and there are no results, the table in the
results page just shows up empty. I know there has to be a way to
have it come back with "No Results Found" as opposed to just being
blank, but I personally am drawing a blank. Any advice? Thank
you!!!!

On 18 Aug 2008 in macromedia.dreamweaver, BillyWBA wrote:
> Quick question. I've set up a search page in
Dreamweaver, which
> searches my Mysql database for whatever the given entry
is. It's a
> basic setup, the search page is on search.php, the
results page on
> results.php, and it seems to work pretty well. However,
I can't
> seem to figure out how to have Dreamweaver echo back "No
Results
> Found" if nothing is found for the search. Right now, if
I search
> for anything, and there are no results, the table in the
results
> page just shows up empty. I know there has to be a way
to have it
> come back with "No Results Found" as opposed to just
being blank,
> but I personally am drawing a blank. Any advice? Thank
you!!!!
Look in server behaviors for 'Display region if...'
behaviors. Put
into the page:
Sorry, no results
Your search results are:
[repeat region goes here]
Highlight the first paragraph (or whatever structure), and
apply the
'Display if recordset is empty' behavior. Highlight the
second
(results) paragraph/whatever and apply the 'Display if
recordset is not
empty' behavior.
Joe Makowiec
http://makowiec.net/
Email:
http://makowiec.net/contact.php

Similar Messages

  • Help required to customize Simple/Advanced Search. Need to add new fields

    Hello,
    Module: Oracle Sales Online
    EBS version: 12.1.3
    Jdev version: 10.1.3.3
    Scenario:
    - We are dealing with standard oracle pages.
    - We have TWO "SIMPLE/ADVANCED SEARCH"s available. Each "Simple/Advanced Search" can be found by navigating through paths "A --> B" and "A --> B --> C --> D" . Here it means one "SIMPLE/ADVANCED SEARCH" page is available at page "B" and another "SIMPLE/ADVANCED SEARCH" is available at page "D".
    - In the first search page which is at page "B", both Simple as well as Advanced search has a filter field "Win Probability %", of type VARCHAR2/DROPDOWN with values (10, >=10, <=30, 30, >=30, <=50, 50, >=50, <=70, 70, >=70, <=90, 90, 100)
    - In second search page, referring to page "D", the Simple search DOESN'T have the "Win Probability %". And the Advanced Search page has the "Win Probability %" but it is of type - NUMBER/MessageTextInput type.
    Issue/Requirement:
    - The 2nd Simple/Advanced search pages need to have "WIN PROBABILITY %" field and it should be of VARCHAR2/DROPDOWN with values (10, >=10, <=30, 30, >=30, <=50, 50, >=50, <=70, 70, >=70, <=90, 90, 100) just like the way we had in 1st Simple/Advanced search.
    Note:
    - Again speaking we are dealing with standard oracle pages
    - If you go to the "About this Page", interestingly I found:
    i. The "message component layout" for both of them is from the same region , i.e., ASNOpptympSrchRN
    ii. Rest of the search filters for both the searchs are from common View Object , i.e., OpptySearchVO1 (for Simple search), OpportunityDetailsVO1 (for advanced search)
    iii. The "Stack layout" for both the search pages are same, i.e. XXMASOpptyQryCO
    iv. None of the fields are rendered to false (everything is set to be rendered TRUE)
    Any response is highly appreciated.
    Thanks,
    Anand
    Edited by: 933590 on Jul 19, 2012 8:18 AM

    "XXMASOpptyQryCO is the name of stacklayout or CO?
    What is the CO?
    Does both pages share same CO?
    have you already extended the CO "XXMASOpptyQryCO"?
    what is the original CO then? I think in that CO it must be written somewhere, simple search "search allowed = false""
    -Here CO what you are referring is a controller.
    -FYI pages share same controller.
    -And the original controller for both the pages are OpptyUwqCO. Right now its extended controller is XXMASOpptyQryCO
    Fact is I didn't create this search page. It was built by some third party members. Also that I do not have the original source nor the documentation pertaining to it. So could you inform as in how should I navigate to the point "Search Allowed = True"
    I should have informed that at "B" page, it has a region      /oracle/apps/asn/opportunity/webui/ASNMgrOpptyQryRN and at page "D", the region is      /oracle/apps/asn/opportunity/webui/ASNOpptyQryRN
    Edited by: 933590 on Jul 19, 2012 1:37 PM

  • I can't search for books or authors on my iphone 6. It says no results found every time. Is there some setting I may have wrong? I have been using my kindle app instead.

    I can't search for book or authors in ibooks.  When I search an author or book and click on it a message that says not results found comes up.  Even if I try to look up something popular like Dracula or Twilight.  Is there some setting I should have clicked?  It won't find or download any books at all anymore.  This started about a month ago.  I have been using my Kindle app instead. 

    Hi laurieg23,
    I see that you are having issues with your connection to the iBooks Store. Here is an article with some troubleshooting steps that will be relevant to your issue, even though the article was written for issues with the iTunes Store:
    Troubleshoot issues on an iPhone, iPad, or iPod touch
    If you haven't been able to connect to the iTunes Store:
    Make sure your date, time, and time zone are correct in Settings > General > Date & Time.
    Note: Time Zone may list another city in your time zone.
    Make sure that your iOS software is up to date by tapping Settings > General > Software Update(iOS 5 or later) or connecting your iOS device to iTunes and clicking Check for Update on your device's Summary page.
    Check and verify that you're in range of a Wi-Fi router or base station. If you're on a device with cellular service, make sure that cellular data is turned on from Settings > General > Cellular.
    Note: If connected to cellular data, larger items may not download. You may need to connect to Wi-Fi to download apps, videos, and podcasts.
    Make sure that you have an active Internet connection. You can check the user guide for your device for help with connecting to the Internet.
    Make sure that other devices (portable computers, for example) are able to connect to the Wi-Fi network and access the Internet.
    Try resetting (turning off and then on again) your Wi-Fi router.
    If the issue persists, try troubleshooting your Wi-Fi networks and connections.
    Can't connect to the iTunes Store - Apple Support
    https://support.apple.com/en-is/HT201400
    Take care, and thanks for visiting the Apple Support Communities.
    Cheers,
    Braden

  • OIM 11g r1 custom field in simple user search result

    Good morning,
    i need to visualize a custom field in the OIM simple user search result table. At the moment, when a simple user search is performed, the returned attribute is only the "Display Name".
    For the advanced user search result table, is possible to add other fields modifying the Search Results table configuration in Advanced->User configuration->Search Configuration.
    How can i do the same the for simple user search result?
    Thank you.

    Yes, i tried to add my custom attribute to both Simple and Adv search result table, but without luck. Only Display Name column attribute is shown when a simple search is performed.

  • All searches now come up with "no results found"

    when I search for something it always comes up "no results found" I never had this problem before, just started a few hours ago.

    Hi there,
    We'll need a little more information to be able to help you in this case.
    Can you please advise;
    - Which Search Engine are you using (Google, Bing, Yahoo etc)
    - How are you searching? Are you using the "Awesome bar" at the top of the screen? Or are you going to a search engine website (eg. google.com) then typing in the search box there?
    - Posting a screenshot might help solve this quicker as well.

  • I searched for "Download FireFox 5 - got the following results: Found 1023 results for download firefox 5 in English. Please save me from having to wade through 1023 results to locate this download!

    I searched for "Download FireFox 5 - got the following results: Found 1023 results for download firefox 5 in English. Please save me from having to wade through 1023 results to locate this download!

    Why do you want the 5.0 version and not the just released Firefox 6 version?
    *Firefox 6.0.x: http://www.mozilla.com/en-US/firefox/all.html
    *Firefox 3.6.x: http://www.mozilla.com/en-US/firefox/all-older.html
    *http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest-5.0/

  • RoboHelp HTML Version 10, Why has my CHM search stopped working? I get "no results found" for all searches.

    RoboHelp HTML Version 10,
    Why has my CHM search stopped working? I get "no results found" for all searches...........rob

    Likely you need to re-register some DLLs and recompile.
    Click the link below and follow the information you find there.
    Click here
    Cheers... Rick

  • Help! ipod touch map feature always says no search results found

    no matter which address, city, if I enter an address directly or select from the contacts.
    if I go to google maps in safari it brings up my addresses quickly and without any trouble. (very nice)
    sooooo
    whats the trick with maps?
    (I have also updated to 1.1.4...no difference)

    yes wifi is on...as I can use safari to to actually validate that an address does bring up the google map; it works great in the browser its just regardless of what I enter into the maps line (address, city, county, whatever)...
    it just says "no search results found"
    as this is a "complete" failure of the map program I was hoping the solution would be easy...guess not
    to summarize...internet connection works great, safari web browsing never fails, using safari to find addresses on maps.google also works without a hitch.
    using the maps program ALWAYS shows a blank background and says no search results found....always...

  • Weather app on iPhone, iOS 8.1, shows "no results found" in China

    Hello,
    I've checked about 20 iPhones in China so far and they all seem to have the same problem.
    When using iOS 8.1 or 8.1.1 (even 8.0.x) the weather app shows "no results found" when searching for any city in the UK. Only London can be found.
    The same goes for Germany. Only four cities in the entire country can be found.
    I have checked on several iPhone 6, 6+, and on 5c.
    Even when using a VPN and being virtually in the US, I don't get any results for e.g. Manchester.
    Could someone else with an iPhone purchased in mainland China do a search for Manchester and confirm this problem please?
    Thank you. :-)

    s●●●●●@gmail.com

  • Taxonomy & Search option set - unwanted results

    Hi,
    we have configured a search index on a repository :
    /documents/Prikbord (this folder has subfolders) :
              /<user.id>/Images
              /<user.id>/Postings
    In each 'postings' folder, an XML form item is created that has a property 'Notice Category' (the images have don't have this property!) to indicate whether the item is for our 'notice board' or our 'lost and found' corner. To visualize all postings by all users  to the end users, we have created an index & a query based taxonomy :
    Create index 'NoticeBoard'
         Name : Notice Board
         ID : NoticeBoard
         Service : search & classification
         Items to be indexed : documents
         Data sources : /root/documents/Prikbord
         Taxonomies : LostandFound -> automatic classification     -> query based
                   Prikbord     -> automatic classification     -> query based
         Permissions : everyone (read)
         Permission Owners : administrators
    Next, we created a search options set :
    Search Option Set :
              ID : NoticeBoardSearch
              Description : Standard UI parameter configuration for Notice Board search
              Initial Display of search options : x
              Close options after search x
              Enable Search Options x
              Enable Further Search x
              Default Search Scope : Folder
              Search Index : NoticeBoard
              Root folders for search : /taxonomies/NoticeBoard
              Enable selection of search method x
              Default Search method : linquistic
              Enable result parameters : x
              Enable Cascading search : x
              Enable sorting of search results : x
              default sorting mode : descending
              default property for sorting : cm_rnd_rankvalue
              allowed sort properties : cm_contentlength, cm_displayname, cm_modified, cm_modifiedby, cm_rnd_rankvalue
              enable items selection : x
              default search language selection : ALL
              additional search properties: Cernum_Notice_Category
              enable predifined properties : x
              Allowed prededfined properties : Cernum_Notice_Category, cm_contentlength, cm_displayname, cm_modified, cm_modifiedby, cm_rnd_rankvalue
    The system creates for our taxonomy following structure :
    /Taxonomies/NoticeBoard
                   /Prikbord
                        /Documents to classify (hidden)
                        /Never to classify (hidden)
                    ... sorted postings are at this level
                   /LostandFound
                        /Documents to classify (hidden)
                        /Never to classify (hidden)
                    ... sorted postings are at this level
    Question :
    We configured a Search iview, using the search options set defined above. However, the images used in the XML forms appear in the search results as separate entries, although they don't have the 'Notice Category type property' assigned.
    How can this be? The search options set has /taxonomies/NoticeBoard assigned as the path to start in, the 'documents to classify' and the 'never to classify' folder are invisible.

    Hi,
    check the images for their metadata.
    Select them and view the details.
    They might have the attributes to, which causes that htey will be sorted as well.
    On the other side, I understand that your search option set is reffering to the index "NoticeBoard" which indexes the content in /root/documents/Prikbord.
    This is not the taxonomy folder!
    That might be the reason you get all the hits of a search, because they are in that folder of "/root/documents/Prikbord". And if the images are in that folder too, it would be clear why they show up!
    regards,
    Darijo

  • How to create a custom search portlet that groups results by category

    Hello,
    Is it possible to create a custom search portlet whose search results are displayed on a page grouped by Category? Basically the results page should have Category heading followed by search results.
    I realize this is not canned functionality but any ideas on how to accomplish this using PLSQL APIs is also welcome.
    Thanks.

    hi,
    one workaround i could think of is using the CM views to search for content that belongs to a category and display it in a custom way.
    http://www.oracle.com/technology/products/ias/portal/html/plsqldoc/pldoc904/wwsbr_api_view.html
    this only allows you to search for the meta-data available in the CM views but not the content of an item that is available when doing a search.
    in the next major portal release we will have a publich search API that can be used for these type of requirements. you can execute your search and format the results in the way you want.
    regards,
    christian

  • Can anyone answer why in logic pro X I keep getting a window popping up that says Directory not found, result code= -120, followed by another window saying, Fade update failed, (error -120)?

    Can anyone answer, why in Logic Pro X I keep on getting a window popping up saying, Directory not found, result code = -120. Followed by another window saying, Fade update failed, (error -120)?
    I am running the latest version 10.0.5 through a Macbook Pro that has just been upgraded to 16GB Ram and a 960GB SSD which has made it as fast as ****. I upgraded because I was experiencing problems before and it was suggested that I didn't have enough Ram?
    I am using a Focusrite scarlett 2i4 and an Alesis Q61 midi controller. Weirdly, just trying to put a bass line down on a track using the Alesis, the bass sound goes out of tune with the track during recording only. This is very frustrating! I surely can't be the only one experiencing this?
    Many thanks
    Rob.

    Hi
    Time lost could be a problem, but.....
    Sadly, I don't think that there are any Apple docs relating to networked storgae issues with Logic. Other than a 'school' or 'business' setup, NAS/OD/AD setups are not usual circumstances for audio.
    If the issue is one of data backup & security, it may be enough to automatically backup the students local work folders to the NAS.
    If the issue is one of the Users being able to work from any Mac and pick up their files from the server, you are not likely to resolve this problem, without copying the files to the Local Mac.
    CCT

  • Display No Results Found in APEX page

    I have a page with two regions the top region is an html region where users enter query criteria and generate an interactive report in the second region.  The second region only displays if there are results from the query in the first region.  I would like to display a "No Results Found" message rather than a blank screen if there are no results found.  However, I don't know exactly how to do that.  I tried to do it in the Interactive Report region, however, once I added the Conditional display to only when exists rows in the Interactive Report from the query criteria.
    Any help is much appreciated.
    Thanks.

    If I understand correctly, you'll want to add an exists condition to your second region (then IR correct?) that uses the basic same SQL with the criteria, but doesn't need to return all the rows (select 1 from ...). Then you'll want to add another HTML region (a 3rd region) with your friendly message in it and with the same SQL condition as before but with a "not exists" so that it's the opposite situation. Basically the regions will flip on or a off based on the results.
    thanks
    Jorge

  • Google Advanced Search only displays 10 Results per page in Firefox 3.6.10

    In Google Advanced Search, choose any value for Results per page greater than 10 and do a search. When using Firefox 3.6.10, only 10 results are displayed on each page of results. 10 results per page is the Google default, and the Results per page selection apparently has no effect.
    This problem also happens in Google Chrome 6.0.472.63.
    The Results per page feature of Google Advanced Search is working properly in other browsers, such as Safari 4.1.2 on a PowerPC Mac and IE 7.0.5730.13 and IE 6.0.2900.5512.xpsp3_gdr.100427-1636 on a PC running Windows XP

    Google recently made some changes to the Google search site with the addition of Instant search and that made the setting of the number of results in the Google settings to stop working.<br />
    <br />
    If Instant search is enabled on the [http://www.google.com/preferences?hl=en Google Search settings] page (link at the top right) then you only get 10 results.<br />
    You have to disable instant search and reload the result page and then set the number of results to your preferred choice.<br />
    It may not work if you make both changes at the same time.<br />
    <br />
    There is a link directly to the right of the Google search field on the Google results page.<br />
    That is a button with a drop down list: Instant is On/Off.<br />

  • How To Make Search Query Showing the Result As List of Buttons.

    Can some one give me an idea how to start to make a Search Query showing the results as list of buttons.. i have already have my buttons with names. i just dont know how to make a search query.
    this is my on screen keyboard i made..
    im making a system that the result were a list of buttons.. showing like this
    This was supposed to be the output of the query that i need to do..
    Please help me.. i just need a idea or tips how to make this one.

    Here is code I posted recently for another question
    Public Class Form1
    Const BUTTON_SIZE As Integer = 20
    Const SPACE As Integer = 5
    Sub New()
    ' This call is required by the Windows Form Designer.
    InitializeComponent()
    ' Add any initialization after the InitializeComponent() call.
    Dim buttons As New List(Of List(Of MyRadioButton))
    For row = 1 To 6
    Dim newRow As New List(Of MyRadioButton)
    buttons.Add(newRow)
    For col = 1 To 6
    Dim button As New MyRadioButton()
    button.row = row
    button.col = col
    button.Height = BUTTON_SIZE
    button.Width = BUTTON_SIZE
    button.Left = col * (BUTTON_SIZE + SPACE)
    button.Top = row * (BUTTON_SIZE + SPACE)
    button.Name = String.Format("radGr1{0}_{1}", row.ToString(), col.ToString())
    Me.Controls.Add(button)
    newRow.Add(button)
    AddHandler button.CheckedChanged, AddressOf Radio_Change
    Next col
    Next row
    End Sub
    Private Sub Radio_Change(ByVal sender As Object, ByVal e As System.EventArgs)
    Dim button As MyRadioButton = CType(sender, MyRadioButton)
    Dim row As Integer = button.row
    Dim col As Integer = button.col
    End Sub
    End Class
    Public Class MyRadioButton
    Inherits RadioButton
    Public row As Integer
    Public col As Integer
    End Class
    jdweng

Maybe you are looking for

  • Exception condition "CNTL_ERROR WD-abap Smartform to pdf

    Hii,  I am using a webdynpro - abap application. I am showing  a smartform as a pdf in one on the windows. When the link in the main window is clicked, a secondary window. Instead of the pdf, I get following exception.Kindly help me understand, where

  • Apple TVs in a hospitality scenario

    Hello everyone,      I currently have a client who wants to install Apple TVs in every guest room in a hotel. I am somewhat unfamiliar on most of the Apple products. I have several Quetions 1) How should the Apple TVs be configured so that multiple d

  • Fluctuation in reading millivolt using AI 600 and cFP 2000

    I have an application based in data acquisition.cFP 2000 and AIO 600 are the hardwares used and im giving 16.2 millivolt from a battery powered millivolt source.If i am reading the millivolt using a digital multimeter it shows constant reading of 16.

  • Help! Categorizing Actions in PSE7

    Last week I upgraded from PSE5 to PSE7. I had a bunch of actions (that actually worked) in PSE5 that I loaded into PSE7. One of the things that I loved about PSE5 was how easy it was to categorize your actions, but in PSE7, it's a little (A LOT) more

  • HP C4440 ALL -IN- ONE PRINTING AND INK ISSUES

    I have an HP C4440 ALL-IN-ONE that seems to be having some printing and ink issues. Ink keeps saying it is in backup mode and its also saying it is not detected or intalled this is not a new cartridge and has been used before without any problems. i