Hi using php, but having search results

Hi my search results work with the exception of a very important element to show only those that are active, defined by the administrator.
It is projection event results if they are inactive.
My default in mysql is set to idle and in edit I replace assets.
That's what my research is:

jjjhbj111 wrote:
> Hi my search results work with the exception of a very important part of only
> list those that are active, the default admin.
> It is projection event results if they are inactive.

Rewrite the WHERE clause like this:

WHERE listingf.status = 'active' AND
(listingf.classbusinessname LIKE '% SearchString %'
OR listingf.inv_addr1 LIKE '% SearchString % '.
OR listingf.classcatid LIKE '% SearchString % '.
OR listingf.categorytype LIKE '% SearchString % '.
OR listingf.inv_state LIKE '% SearchString % '.
OR listingf.inv_addr2 LIKE '% SearchString % '.
OR listingf.tel LIKE '% SearchString %')

Note that the section after AND is in parentheses.

--
Adobe Community Expert David Powers
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Tags: Dreamweaver

Similar Questions

  • How to activate Rich Snippets be used in Google's search results?

    I would like to have the Rich Snippets to appear in Google search results.  Is there a way I can activate it within the Muse?

    Thank you

    Darren

    An easy way...

    Adobe Muse SEO Widgets

  • Can't see that contains the folder when bookmark search result is displayed

    Sometimes I want to move a bookmark to a specific folder after I found using search, but the search results does not show the folder that contains so I don't know where to move.

    Look at:

  • Without scroll bars when search results are displayed in the "content" section

    Hello

    I use reactive HTML5 in 2015 of Robohelp.

    The Azure_Blue layout works very well, but when search results are set to appear in the 'content' section no scroll bar is displayed, if you can't navigate to the results of research which are off the screen. Scroll bars are displayed when its set to appear in the sidebar. Tried with many different browsers - same result.

    Is it bug? Others do for this problem?

    See screen capture below.

    See you soon

    The CSS fix mentioned by Willam resolves the problem.

  • Why google search results show me useless result. Is this problem of cookies?

    When I search on google every time for the exact keyword to enter a site which I am looking for there show me on the first page of google, but the site is totally new and how google can show me the site that has no rank. Is this problem of cookies? I delete cookies several times of Mozilla, but steel search results are the same. And do not find in the search engine page ranking. What should do?

    Can anyone give me the solution how to clean and fix this research?
    Thank you
    Hihi

    [Link Spam deleted by the moderator. Please read the guidelines and rules of the Forum, thank you.]

    Google sets several cookies, however, if you delete and you are not signed in, then you get results for your browser, language, geographic location, etc. and not for you personally.

    Google has a tool that shows you where your page comes up in a search? I remember seeing some thing like that in the webmaster tools some time ago, at least I think that's where he was, or perhaps analytical.

  • Save "Search results" in a file?

    When editing in the CVI, I often usefully copy content from "Search results" in a window of change so that I can change/analysis/filter/sort information.  I wish I could do the same thing in the TestStand sequence editor.  Is a temporary file that is generated when the TestStand search results are displayed?  If Yes, where?  If not, is it possible to send the results to a text file?  Thanks for any help.

    Hello Cecilia,

    I think that the link I provided you was wrong.

    Try thislink.

  • How can I change the display of search results format?

    My default folder view is "details" for all folders. But search results always happens to "Tiles", which makes me go to discover details manually I have to search for a file each time. Is there an easy way to change the default display of search results?

    To remember. Try to remove all the parameters.
    Menu Tools (on the keyboard ALT + T) - Folder Options - view - reset records
    --
    ..
    --
    "Teun Spaans" wrote in message news: 7eca660e-c0c7-4 c 58-abfa-ff558257bbe8...
    > My default folder view is "details" for all folders. But still
    > search results comes to "Tiles", which makes me go to the details view
    > manually whenever I have to search for a file. Y at - it an easy way to change the
    > default search results display?

  • How to format the page of search results?

    How can I Format search result page? Thank you!

    You need to put in shape on this page? Also, would what type of research you customize? You can also use custom templates with search results to customize how search results are displayed - custom templates | Developers of enterprise catalyst

    Kind regards

    Mihai

  • Increase the search results to be more than 500

    We have a requirement of use to increace the search results for any type of technique to over 500 (now the set limit). Is it possible none in the system?

    This limit is in place for performance reasons and cannot be rid of basic research.   However, usually when users want more than 500 results is because they are tasks considered compared to standard search/navigation tasks.   For tasks in report, we published reports ready.  Ready reports offers the same features that the search you can adjust the limit of 500 and run saved contextual criteria.   Alternatively, you can calm the concern for the performance by implementing enforcement reports, ready to use a reporting database if necessary.

    Reports of loan is extremely simple to install.  You can learn more on this topic by watching the video of presentation on the collaboration site.  You can also read the guide that is located in the pack of extensibility.

  • I want to erase the search results for certain searches. When I search for some keywords I get old SERPs that I know are not up-to-date. If I use a different machine, I get the current results. I can't find how to clear it.

    I am tracking my own Web site position in search rankings. For a short period, he appeared on page 1 for certain keywords. It is now on page 2 or 3, (as seen by me and other users when you use another computer or a browser), but when I search on my computer I see the old pages of results showing the top of page 1. How can I erase these old pages of results?

    If you press Ctrl and F5 at the same time, that changes? I think that Google (I guess that's what you're referring to the) changes in search results is inspired by a little if you are connected and preferences, etc.. Try to connect on google if you are connected.

  • When I look for a file in Win Explorer, I get a list of files in the search results. But some of the files seem to be missing. I get a message that the directory is not found when I try to open the search results.

    I wonder if what's on my hard drive and if what Win Explorer is on my hard drive are two different things.

    If I do a search in Win Explorer to "purple", I get a number of results.
    (To search for a file, I am in the word "Purple" in the search field in the upper right Win Explorer and pressing the "Enter" button).

    There are a couple of JPG files that I wonder about the search results.
    One example is called "purple_flowers.jpg".
    When I double-click this file in the search results to open it, my paint program opens and gives me a message that the directory is not found. If I use MS Paint to try and open it by double-clicking on the file and selecting "open with...". MS Paint", I get a message that the directory is not valid.

    The location of the directory on the error message is the blue 'Images' folder for my user. But, when I opened this file, I don't have a file with that name in this directory. The same thing happens with another JPG file, called "octopus.jpg" when I search the word 'Octopus '.

    Is this something messed up between what I have on my hard drive and think what Win Explorer is on my hard drive?
    How can I fix?
    Something must be reset in Win Explorer?

    I could have the JPG files with these names at the same time. I had a large library of images for a project, but I deleted it.
    (I tried to turn on the option to show hidden files in this directory, but that did not help).

    Imane:

    I thank very you much for that answer.
    But it seems to have stumbled on the solution:

    Strangely, this worked:

    (Maybe you know why).

    I moved the files in my blue images folder in another folder, delete the folder images blue, emptied the Recycle Bin and rebooted my computer.
     
    When my computer has finished its startup routines, my folder of photos blue was there! And he had the shortcut to the folder 'Sample Pictures' inside.
     
    When I searched "the Octopus" and "purple", I no longer saw these JPG files in the search results.
     
    I don't really know what happened, but I thought that after these results just in case someone else knows this.

    I'll read and watch in your information. I don't want to know more about what is happening in my computer.

    Marz

  • How to show the LOCATION of the search results file (drive > folder) that used to make Windows XP?

    Search works well in all indexed locations. However, when you click on "see more results", you get a huge list of random hits in alphabetical order. It's not exactly a blessing:

    • because you know not the title if it's the document or image that you want to or not, it would be useful to know the name of the folder it contains and on which drive this file can be found.
    • XP would provide the location of the file and the title of a column in another column. This is the behavior I want to make the default for searches.
    • If you double-click an entry to select it, you agree to this one, it opens and you lose all your search results (if you guessed wrong, you need to perform a new search).
    • the only way to learn the location of an item is to right-click and choose "Open file location" but it is very tedious when you get a lot of results.

    Is there a way to change the way in which the "see more results" window displays the results?

    Hi Tachi,

    To see the path of the files, right-click on the search window, goto view , then select Details.

    If you want to save the current search, click on save search.

    Kind regards

    Vinoth Santana

    MCSA | MCSE | MCTS | MCITP

  • Using only the address bar can have a drop down of google search results has not been visited webistes

    I would like to see my search results in the address instead of the results bar previously visited (if possible a mixture of both), I just wondered if their was anyway to do it, without using the mini search bar. Thank you!

    I think that for now, you need an add-on to display search suggestions below the address bar you type, if I interpret correctly your question.

  • I use google search. When I click on a suggestion contained in the results tab of the search, I want it to open in a new tab and keep the search results in the original tab. How?

    For example, when I enter the search term "cabinets" and get a page/tab search results with suggestions such as Sears, JCPenney, or Amazon, I want to be able to click on Sears and open the Sears page in a new tab/page. I want to be able to close the tab to Sears and use the search results tab.

    Google offers a framework for this. What it does, it adds a HTML (target = "blank") statement to every result link, which causes Firefox to open in a new tab. If you uncheck the preference to divert new windows in new tabs, Firefox will then open the result in a new separate window.

    This preference is stored in a cookie, if you clear your Google cookies often, so you'll need to reset every time. You can do so here:

    https://www.Google.com/preferences

    (On this page, Google refers to a new window.)

  • Vertical spacing of search results display page has expanded without any manual changes having been filed; None of these changes took place in Google Chrome or IE8.

    The result of the problem is that I can't see as much of a page of search results as previously. The change came as a result of an upgrade of Firefox version.

    Sorry for the delay in responding. I had one of these manifestations of the dreaded "blue screen" this morning and have been engaged in rescue operations since then. These included a couple of successful procedures, a Malwarebytes scan troubleshooting Windows and a race of CCleaner. I noticed that the condition that I pointed out in the view of Firefox search results page has subsequently rectified itself as easily and inexplicably as it to materialize yesterday!

    I'll watch points, of course, in the next days and weeks, but everything now seems to be back to norma for the moment. A big thank you to all who have tried to help with this.

Maybe you are looking for