Problems when using two search bars for filter 1 table

Hello

I can't see why this code does not work. It seems that the variables are broken or something but not too sure.

I had initially 1 single search bar on the page of the inventory where the results would appear and everything worked fine, but when I added a search bar 'master' on the home page, which redirects to the inventory list carrying the variable (which was sought), he comes into conflict with the search code original. Both work independently one another and fine when only the codes research is on work page, but once I combine the two search bars, it will not show the results.

the Variables are reported (from the home page) without any problems, I did echo out on the inventory page.

I decided to combine the variables to see if research can run on a single article of the code, instead of duplicates (I thought it can interfere) but no luck. (The code below is that with combined variables)

Any help would be much appreciated!

$search = ($_POST ['txt_search']) OR (_GET ['searchprops']) $;

If (isset ($search))

{//Only show what is sought

$searchword = $search;

$query_propsinv = "SELECT * FROM accessories WHERE name LIKE ' %". "." $searchword. "%' OR description AS '% '. $searchword. ' %' Color GOLD AS '% '. $searchword. "%' OR like ' %". " $searchword. "%' OR size AS '% '. $searchword. "%' OR weight AS '% '. $searchword. "%' OR LIKE ' %". " $searchword. "%' OR as '% '. $searchword. "%' OR location AS '% '. $searchword. "%' OR secondary AS '% '. $searchword. "%' OR the amount AS '% '. $searchword. "%' OR id LIKE '% '. $searchword. "%' OR BC AS '% '. $searchword. » %'";

}

{if (! isset ($Search))}

$query_propsinv = "SELECT * FROM props."

}

$query_limit_propsinv = sprintf ("%s LIMIT %d, %d", $query_propsinv, $startRow_propsinv, $maxRows_propsinv);

$propsinv = mysql_query ($query_limit_propsinv, $drama_database) or die (mysql_error ());

$row_propsinv = mysql_fetch_assoc ($propsinv);

This combination will never work:

$search = ($_POST ['txt_search']) OR (_GET ['searchprops']) $;

Try this combination:

{if($_POST['txt_search'])}

$search = $_POST ['txt_search'];

}

{ElseIf($_GET['searchprops'])}

$search = $_GET ['searchprops'];

}

Tags: Dreamweaver

Similar Questions

  • How to use the search bar 'Find' in the table of contents to find the script FULL of my course?

    Hello

    My project contains voice narration with the support of chips. Start-up option "find" in the table of contents looks only bullets of text on each slide to specific words. Is there a place I can insert the full script (rather than the abbreviated chips) spoken by the narrator in my class so that the option "find" search in these words?

    Thank you!

    Hello!

    Captivate, in fact the finding of OCD to retrieve and search for the text content of slide and slide labels usage.

    What you can do to get your full script to work.

    (1) add a text caption slide.

    (2) paste is your complete script. (From slide notes)

    3) go to properties of legend text-[disable] option which does not show in the output.

    In this way, you would have all your content on the slide to search for in the table of contents, but still not visbile to users, they would continue to see the short balls.

    I hope this helps.

    Thank you!

    Anjaneai

  • Problem when used BSE update file for AS400

    Hi all


    I create the BSE for updated files of Win2003 to AS400 by outgoing FTP adapter Service.
    I've never used before AS400. I test BSE with the windows environment, it works but when move to as400 this error.
    I have test it with the FTP command I put the file as below.

    F:\ProductionProject\ESBdeployLib > ftp 172.16.8.59
    Connected to 172.16.8.59.
    220 - QTCP to AS400DEV.
    User (172.16.8.59:(none)): HATCYRD)
    331 password.
    Password:
    230 HATCYRD connected.
    FTP > put deploy.bat
    Successful request 200 PORT subcommand.
    150 send file to Member BEATS in DEPLOY file in the YRDDTALIB library.
    226 completed successfully file transfer.
    FTP: 50 bytes sent in 0.00Seconds 50000.00Kbytes / s.

    I want to put the file to the root of the ftp.
    What value should I put specific directory to a logical name with the name of the properties parameter point final "outgoingFilePath".
    and the error that are not displayed.

    It is error when I put in outgoingFilePath with the value "YRDDTALIB".

    An unhandled exception was thrown in the system of BSE. The reported exception is: ' org.collaxa.thirdparty.apache.wsif.WSIFException:

    ESB:///ESB_Projects/temp_ESB_YBRTServiceProject_localhost/putLOG_DOMESTICCARLOCATION.WSDL [Put_ptt::Put (Root Element)] - SISM JCA Execute of 'Put' failure due to operation: bad physical logic

    mapping output directory. No matches found for the logical output to the physical output directory directory. ; nested exception is: logic output directory map physical evil ORABPEL-11047. No matches not found for

    Logic output to the physical output directory directory. For the value specified in the directory parameter (Physics/logic), make sure that the directory mapping physical name logic <>- is correctly specified in the

    deployment descriptor. to oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeRequestResponseOperation(WSIFOperation_JCA.java:623) to


    It is error when I put in outgoingFilePath with an empty value "or '.'.

    [Put_ptt::Put(Root-Element)] - SISM JCA Execute of 'Put' failure due to operation: error sending file on FTP server. Unable to send the file to the server. ; nested exception is: error ORABPEL-11429 send file on FTP server. Unable to send the file to the server. Make sure that 1. The output specified remote dir has permission to write 2. Name of the output file has not exceeded the max allowed by the operating system and 3 chararters. Remote file system has


    Kind regards

    Larson

    She should be allowed, are you sure that the data have been sent to the adapter?

    is it possible to do a search for the file on the AS400. Search for the root of the operating system. The name must be defined in the outgoing adapter.

    I expect it to be in the directory that you connect as well. Y at - it something like a symbolic link?

    see you soon
    James

  • The search by using the search bar IS NOT to bring out all its on the page. He sees the shots, but don't highlight, so I don't see what it is.

    When I search a Word using the search bar, Firefox highlights all the hits on the page. (Sometimes it highlights some.)

    Apparently, he sees shots, because it climbs to everyone that I click Next. But it is not to highlight the successes. I don't see what Firefox has found.

    I'm afraid that it is a problem of Windows 7 (I'm not a fan of Win7).

    Are you clicking on "highlight all" in the search bar? See: https://support.mozilla.com/en-US/kb/Searching+within+a+page

    You have outdated plugins with known security problems. You need to update.

    • Shockwave Flash 10.1 r82
    • Next-generation Java plug-in 1.6.0_21 for Mozilla browsers
      • New update of security published, version 1.6.0_22
    1. Check your plugin versions: http://www.mozilla.com/en-US/plugincheck/

      • Note: plugin check page lacks information about all versions of the plugin
    2. Shockwave Flash update
    3. Java Update:
  • whenever I use my search bar, he goes on some Russian site

    whenever I use my search bar, it goes to this website it is all the Russian and I cannot read a word about it. y at - it something I could turn off which could cause it to use Google for my search bar. I don't like the Russia. the webthingy is the URL thingy. This is what happens when I'm trying to get some stuff. Thank you.

    See:

  • How can I get two jobs when using two monitors, instead of stretching a desktop on both screens?

    Hello!

    How can I get two jobs when using two monitors, instead of stretching a desktop on both screens? I n ' want to clone my office, and I don't want to stretch it. I want two desktop computers, where I can "send/give" to the other desktop programs.

    I need a third party program? It is very good. If you know one please tell me about it.

    Hi OskarKvist,

    This feature is not supported by Windows XP.

    However, you can use your favorite search engine to download any third-party software that could serve the purpose.

    Note: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Hope the helps of information.

  • You can use the search bar to choose the cookies / then 'remove all cookies' only delete them?

    Sometimes, I want to delete cookies that accumulate from a specific Web site, so I use the search bar. If 'remove all cookies' is clicked after the search bar using, only those who remain the search will be deleted, or will be deleted all cookies - including those outside the research -? Thank you.

    Using Firefox 27.0.1

    I tested it, and only the cookies that show in the result window are deleted if you click on delete all Cookies.

    Clear the search bar through the icon on the far right, showed that other cookies are still there.

    Note that it is generally safer select all cookies that you want to delete and press the DELETE key or click Remove Cookies to avoid deleting all cookies.

  • I'm unable to use the search bar in Safari

    I'm unable to use the search bar in Safari.

    Turn off the Suggestions of Safari in the preferences/Safari/search / uncheck Safari Suggestions.

    https://discussions.Apple.com/docs/doc-9362

    http://osxdaily.com/2016/01/05/fix-Safari-freezing-address-bar-use/

  • I want to use two different images for a button state...

    I want to use two different images for a button state... [Normal] grayscale media social icon outline [rollover] color media social status icon.

    Option 1:

    Create a status button which becomes transparent in the mouse above.

    Have the other underneith of the image.

    Option 2:

    Create a status button with a background image.

    Then select a different background image for each State.

    You can also do cool stuff like Sprite buttons too.

    Example: Adobe Muse Social Sprites by MuseThemes

    Widget page: Adobe Muse Social Sprites by MuseThemes

    Themes of Muse had a great video about these doing just now.

  • If I buy the adobe cc then can I use it on several laptops at the same time? I use two different computers for my work. as a photoshop and illustrator, for example.

    If I buy the adobe cc then can I use it on several laptops at the same time? I use two different computers for my work. as one for photoshop and Illustrator for example.adobe

    This excerpt from: terms of conditions of use Adobe software should help to clarify the terms for you:

    ..... You can activate the software on up to 2 devices (or virtual machines) at the same time, if these activations are associated with the same Adobe ID for the same person, except http://www.adobe.com/go/activation_fr. However, you cannot use the software on these devices simultaneously.

    You can also see:FAQ: where can I find the terms of membership and the terms of use?

  • When you use the search bar, it is possible to get results of the search in a new tab?

    In the old Google toolbar, it was possible to display the search results in a new tab, Google toolbar is compatible with Firefox 7, so I have to use the Firefox search bar. However, he always gets results the research in the current tab. Can this be changed?

    Yes. Open a new tab and type or paste Subject: config in the address bar, press enter and press ENTER again to override the warning. Then stick browser.search.openintab in the filter area that shows, and then double-click the browser.search.openintab to activate (it will switch to "BOLD").

    If you had rather an add-on simply do the above for you and add a menu option for it, try this:
    https://addons.Mozilla.org/firefox/addon/searchOnTab/

    You can also type a search in the search bar and press on alt + enter in instead of just enter to open your search in a new tab.

  • When I open mozilla I get a search bar for tikotin

    On my desktop icon when I open mozilla it appears a search bar tikotin why

    See also;

  • Tried all your suggestions and always receive "Unable to connect" when using ANY search engine.

    Can't use any search engine of FF 40.0.3 on Macbook Pro model with 10.8.5 OS 9.2. Receive "Unable to connect" message when you try to use a search engine. Other than the search engine and Mozilla Web sites to connect properly. 40.0.3 on another Mac FireFox works fine without any problems.

    In addition, I can not access the FF "Get modules" page or the home page of Mozilla. Search engines will connect not their home page or the search bar. Problem just started. I had previously been upgrade and have resorted, FF 40.0.3 without problem when it was issued. Solutions of attempts included refresh FF, launch FF in safe mode, run with all plugins disabled, graphics hardware acceleration disabled. None of these fixed the issue.

    Had already tried your suggestions, without success, but has once again to be sure. Without success. However, I made a further exploration of my own and found out that IPv6 is set to "Link Local" only in my router. I have reset on 'Automatic', the router reset to update, and my problem was solved. So it was the IPv6 setting (unlikely) or the router reset (probably) that solved the problem, or it is your suggestions I tried and did not work, COMBINED with the router reset which solved the problem (quite possible).

    Thanks for the comments!

  • Can I get the Firefox search bar for not automatically, go to the site of the search engine I spend?

    The Firefox search bar seems to have changed since the last update. I understand that things are changing constantly and get used to them, but I wonder if it is possible to change the rear bar to the way it was, or at least understand why it changed.

    Basically, I used to be able to switch from search engines by choosing from the drop-down list, and would not put me right at the site of this search engine. He didn't actually bring me to the site once I hit the search button (or enter). It's quite annoying to have to remember to open a new tab before changing search engines in order to avoid sailing away from the tab that you are currently on, and it's also annoying that when you open a new tab and change the search engines, you are immediately taken to the site of this search engine. It feels like an extra step (ranging from 'the empty tab search engine page to search result' instead of 'empty tab to search result').

    I know it sounds like a minor complaint, no doubt, but I'm really really curious to know why it was changed. More important, I want to know if there is a way to customize the way it was.

    Thanks for any help!

    Many users have been raising this issue. I mentioned the same question in this post here: https://support.mozilla.org/en-US/questions/1086138

    In summary, it seems that the Firefox team is not intend to bring back the ability to return to the old bar search, which was possible (but in a very biased way) in older versions of 42. For now, you can either:

    • Download module additional classic restaurateur theme to https://addons.mozilla.org/en-US/firefox/addon/classicthemerestorer/?src=ss and then select the old search option
    • Go back to Firefox 42 and set the browser.search.showOneOffButtons property in Subject: config. However, with older versions poses a risk to the security that you won't have bug fixes provided with version 43
  • How to get back the search bar, for its old appearance?

    I use Firefox 34, and I can't stand the new search bar. How can I change this back to the old style? I tried to restart with disabled modules, so I know that the problem is with Firefox

    I can download pictures to explain better, if necessary.

    Hi thedude9821, you use something like the extension of the keyword search?

    https://addons.Mozilla.org/firefox/addon/keyword-search/

    Which makes your address bar search independent of the default search engine, so your search bar can be assigned to your second-most-used plugin by default.

    As to what should be the fix, a checkbox in the options that restores the old option 'default used for the last' might be a practical solution. Just need someone to encode this weekend!

Maybe you are looking for

  • Split HP 13 x 2 PC: problem of its HP Split x 2 after upgrading to win 10

    I upgraded my laptop to Win 8.1 to 10 .but I have a sound problem... sometimes I can't see the videos on Youtube, facebook... If I start a video from the video stucks and a start-up sound comes... .but the problem will automatically and back again...

  • MPCI wireless to Satellite 2410 603

    Hi, I just bought mpci card (Intel PRO/Wireless 2915abg) and now I'm wondering how to connect to it. There are two wires in the slot of the mpci - black and white, and there are two pins on the map - main and auxiliary who goes where? Thank you!

  • MEMORY TWIN

    memory works in single channel memory.try screen slot 2 is empty. How can I change it to double channel.i look to wood without parameters for this.Operating system: Windows 7 Professional 64-bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_gdr.1403

  • claim want 5530 code

    How can I get request like 5530 with usb connection code? I don't have a wireless connection. I followed the instructions, if you have wireless and never found the statement "I agree."

  • How to uninstall a driver

    You guys have contributed to this amateur ranking a few times before and I'm sure you can do it again hope.  I am trying to solve a problem of printer where in something so I found myself with the printer listed twice in the control panel and each of