Advanced Search Results PHP

Hello, I am designing my first Dynamic Website in PHP and WAMP and have so far managed to create a working Search Element on my website (search for 20mm on www.reese-test.co.uk )
It shows a linkable pic in "column 1" and Description in "column 2".
What I would ideally like though is to seperate the code and description columns (as shown below - pic 1), the problem is the search only works by finding the content in the description column, I have tried all different things in the "Advanced" tab to Filter by "Code" and "Description" but it is still only filtering by "Description" only.
My question is, does anyone have any simple instructions to get it to filter for both columns. In the "Simple" panel I can only select one option to filter!!!
thankyou for your help!

thankyou BREGENT. that worked although to get it working, I had to lay it out like:
SELECT *
FROM productslist
WHERE `description` LIKE %colname% OR `code` LIKE %colname%
ORDER BY code ASC
Rob: I cant see what i should change, do you mean something like: (appologies - first time i've done this!)
SELECT * MATCH `description` AGAINST `code`
FROM productslist
WHERE `description` LIKE %colname% OR `code` LIKE %colname%
ORDER BY code ASC

Similar Messages

  • Reg:Hgrid in advanced search results

    Dear team,
    Pls provide the implementation of Hgrid as search results for advanced search.
    When i am trying to implement the Hgrid region as search results for advanced search i am not getting the expandle nodes.
    Pls suggest
    Regards,
    Radha

    Intead of using query bean make ur on search page and show results in hgrid.
    --Mukul                                                                                                                                                                                       

  • How can I change font size of advanced search results?

    Once I do an advanced search the font is very small. Any way to change it?

    Printer font size is controlled by your printing software or browser settings. You must change the font size in these programs.

  • Advanced search for a price range while checking for an empty values using php in DW

    I am creating an advanced search with DW php. I would like to submit a search where some entrys can be left black. So checking for empty values (which I have managed, thank you David Powel), however when searching between multiple price ranges does not seem to work.
    please see attached forms:
    The search page:
    <form action="Detailed-Search-Result.php" method="get" target="_self"><table width="90%" border="0" cellspacing="0" cellpadding="2">
      <tr>
        <td colspan="2"><label for="Detailed Search">Advanced Search</label></td>
        </tr><tr>
        <td><label for="Product">Product:</label>
          </td>
        <td><select name="Category" id="Category">
          <option value=></option>
            <option value="Keyboard">Keyboard</option>
            <option value="Piano">Piano</option>
          </select></td>
      </tr>
      <tr>
        <td><label for="Make">Make:</label>
        </td>
        <td><select name="Manufacturer">
          <option value=></option>
          <option value="Boss">Boss</option>
          <option value="Casio">Casio</option>
          <option value="Kawai">Kawai</option>
          <option value="Ketron">Ketron</option>
          <option value="Korg">Korg</option>
          <option value="Roland">Roland</option>
          <option value="Samson">Samson</option>
          <option value="Yamaha">Yamaha</option>
        </select></td>
      </tr>
      <tr>
        <td><label for="Color">Color:</label></td>
        <td><select name="Color">
          <option value=></option>
          <option value="Black">Black</option>
          <option value="Cherry">Cherry</option>
          <option value="Mahogany">Mahogany</option>
          <option value="Polished Eboney">Polished Eboney</option>
          <option value="Rosewood">Rosewood</option>
          <option value="White">White</option>
          <option value="Red">Red</option>
        </select></td>
      </tr>
      <tr>
        <td><label for="Price">Price:</label></td>
        <td><select name="Price">
          <option value=></option>
          <option value="0-500">£0-500</option>
          <option value="500-1000">£500-1000</option>
          <option value="1000-2000">£1000-2000</option>
          <option value="2000">£2000&gt;</option>
        </select></td>
      </tr>
      <tr>
        <td colspan="2">
          <input name="Search2" type="submit" id="Search2"></td>
        </tr>
        </table>
    </form>
    The results page
    $varCategory_rsgetsearch2 = "%";
    if (isset($_GET['Category'])) {
      $varCategory_rsgetsearch2 = $_GET['Category'];
    $varMake_rsgetsearch2 = "%";
    if (isset($_GET['Manufacturer'])) {
      $varMake_rsgetsearch2 = $_GET['Manufacturer'];
    $varColor_rsgetsearch2 = "%";
    if (isset($_GET['Color'])) {
      $varColor_rsgetsearch2 = $_GET['Color'];
    $varPrice_rsgetsearch2 = "%";
    if (isset($_GET['Price'])) {
      $varPrice_rsgetsearch2 = $_GET['Price'];
    mysql_select_db($database_dBconn, $dBconn);
    $query_rsgetsearch2 = 'SELECT * FROM products';
    $where = false;
    if (isset($_GET['Category']) && !empty($_GET['Category'])) {
    $query_rsgetsearch2 .= ' WHERE Category LIKE varCategory '. GetSQLValueString($_GET['Category'], 'text');
      $where = true;
    if (isset($_GET['Manufacturer']) && !empty($_GET['Manufacturer'])) {
      if ($where) {
       $query_rsgetsearch2 .= ' AND ';
      } else {
       $query_rsgetsearch2 .= ' WHERE ';
        $where = true;
    $query_rsgetsearch2 .= 'Manufacturer LIKE varManufacturer ' . GetSQLValueString($_GET['Manufacturer'], 'text');
    if (isset($_GET['Color']) && !empty($_GET['Color'])) {
        if ($where) {
       $query_rsgetsearch2 .= ' AND ';
      } else {
       $query_rsgetsearch2 .= ' WHERE ';
        $where = true;
      $query_rsgetsearch2 .= 'Color LIKE varColor ' . GetSQLValueString($_GET['Color'], 'text');
    if (isset($_GET['Price']) && !empty($_GET['Price'])) {
        if ($where) {
       $query_rsgetsearch2 .= ' AND ';
      } else {
       $query_rsgetsearch2 .= ' WHERE ';
        $where = true;
    switch( $_GET['Price'] ){
            case '0-500':
            $query_rsgetsearch2 .= '  RRP BETWEEN 0 AND 500 ORDER BY price ASC'. GetSQLValueString($_GET['Price'], 'text');
            break;
              case '500-1000':
            $query_rsgetsearch2 .= ' RRP BETWEEN 500 AND 1000 ORDER BY price ASC'. GetSQLValueString($_GET['Price'], 'text');
            break;
                        case '1000-2000':
            $query_rsgetsearch2 .= ' RRP BETWEEN 1000 AND 2000 ORDER BY price ASC'. GetSQLValueString($_GET['Price'], 'text');
            break;
              case '2000':
           $query_rsgetsearch2 .= ' RRP BETWEEN 2000 AND 10000 ORDER BY price ASC'. GetSQLValueString($_GET['Price'], 'text');
            break;
    $query_rsgetsearch2 = sprintf("SELECT * FROM products WHERE Category LIKE %s AND products.Manufacturer LIKE %s AND products.Color LIKE %s", GetSQLValueString("%" . $varCategory_rsgetsearch2 . "%", "text"),GetSQLValueString("%" . $varMake_rsgetsearch2 . "%", "text"),GetSQLValueString("%" . $varColor_rsgetsearch2 . "%", "text"));
    $query_limit_rsgetsearch2 = sprintf("%s LIMIT %d, %d", $query_rsgetsearch2, $startRow_rsgetsearch2, $maxRows_rsgetsearch2);
    $rsgetsearch2 = mysql_query($query_limit_rsgetsearch2, $dBconn) or die(mysql_error());
    $row_rsgetsearch2 = mysql_fetch_assoc($rsgetsearch2);
    I would be greatfull for any help

    I have managed to solve the problem.
    In the end I didn't check if the values were empty, as it worked fine without. However the switch of the price didn't work in combination with the rest of the query.
    I've solved the problem as follows:
    $varCategory_rsgetsearch2 = "%";
    if (isset($_GET['Category'])) {
      $varCategory_rsgetsearch2 = $_GET['Category'];
    $varMake_rsgetsearch2 = "%";
    if (isset($_GET['Manufacturer'])) {
      $varMake_rsgetsearch2 = $_GET['Manufacturer'];
    $varColor_rsgetsearch2 = "%";
    if (isset($_GET['Color'])) {
      $varColor_rsgetsearch2 = $_GET['Color'];
    $varPrice_rsgetsearch2 = "%";
    if (isset($_GET['Keysound_price'])) {
      $varPrice_rsgetsearch2 = $_GET['price'];
    mysql_select_db($database_dBconn, $dBconn);
    $query_rsgetsearch2 = sprintf("SELECT * FROM products WHERE Category LIKE %s AND products.Manufacturer LIKE %s AND products.Color LIKE %s", GetSQLValueString("%" . $varCategory_rsgetsearch2 . "%", "text"),GetSQLValueString("%" . $varMake_rsgetsearch2 . "%", "text"),GetSQLValueString("%" . $varColor_rsgetsearch2 . "%", "text") );
    switch( $_GET['price'] ){
            case '0-500':
            $query_rsgetsearch2 .= ' AND price BETWEEN 0 AND 500 ORDER BY price ASC';
            break;
              case '500-1000':
            $query_rsgetsearch2 .= ' AND price BETWEEN 500 AND 1000 ORDER BYprice ASC';
            break;
                        case '1000-2000':
            $query_rsgetsearch2 .= ' AND price BETWEEN 1000 AND 2000 ORDER BY price ASC';
            break;
              case '2000':
            $query_rsgetsearch2 .= ' AND price BETWEEN 2000 AND 10000 ORDER BY price ASC';
            break;
    $query_limit_rsgetsearch2 = sprintf("%s LIMIT %d, %d", $query_rsgetsearch2, $startRow_rsgetsearch2, $maxRows_rsgetsearch2);
    $rsgetsearch2 = mysql_query($query_limit_rsgetsearch2, $dBconn) or die(mysql_error());
    $row_rsgetsearch2 = mysql_fetch_assoc($rsgetsearch2);
    I'm sure that you can keep the checking for values in, however for me the was no need for it anymore.
    Thanks for all your help

  • Functionality loss when 'Using Query Bind Variables in Advanced Search

    Regarding: 'Using Query Bind Variables in Quick or Advanced Search'
    The functionality to do the following is lost when I use bind variables in the Advanced Search:
    "Result matches all conditions"
    "Result matches any condition"
    "Case Sensitive?"
    Is there a way to Search with Detail groups but to keep the above functionality?

    Hi,
    Your application module impl java class extends the JHeadstart class JhsApplicationModuleImpl. THe latter declares a method:
    public void advancedSearch(String viewObjectUsage,java.util.ArrayList arguments,Boolean allConditionsMet).
    In your application module impl java override the advancedSearch method where you can include your own custom code before invoking the super method:
    super.advancedSearch(viewObjectUsage,arguments,allConditionsMet);
    The 'arguments' parameter is an arraylist of QueryCondition objects. You can set several properties for QueryCondition objects such as case-sensitity, operators etc.
    Regards,
    Ibrahim

  • Expanded data in Advanced Search for UI

    Hi Gurus,
    what I wonder to know if where I can remove/change fields which compare if I click on the triangle on the left side of a promotion ID in the Advanced Search Result view.
    At the present moment if I click on it I can see three sets of data: one for product of the Trade Promotion, one for Casual Product and the last one for Trade Spend.
    If, for example, I want to delete the row for trade spend, how can I do it?
    Full of point for an helpful answer!...
    Thanks a lot,
    best regards,
    A.

    Hi Carsten,
    I will try to explain it better.
    So when I search a Trade Promotion I have a little tringle on the left of the link to the Trade Promotion and clicking on it I can see the three objects I told you. I also had a look to the correspond context node and I found in the context node ADVANCEDSEARCHRESULT for TPMOE component the method GET_SUB_CNODE_DEFINITIONS the three calls to the three objects.
    Is it the right path?
    If I would like to hide one of them I should work in this method?
    Thanks a lot,
    best regards,
    A.

  • 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 />

  • Search Results Display Preference as "Advanced" not working in R12

    Hi Everyone,
    I'm unable to do an Advanced search in R12(12.1.3) whereas "Standard" search is working fine at 'Search Results Display Preference' in Oracle Applications Home Page.
    Advanced search throws 'http 404' error in all upgraded instances.
    Is there any patch need to be applied or setups as part of R12 upgrade. Kindly help.
    APPS - R 12.1.3
    DB - 11.2.0.3
    OS - IBM AIX 6.1.0.0
    Thanks in advance,
    Lakshmanan

    Thanks for the reply.
    I got only below error in Apache log and no error message at application/server logs.
    10.15.29.7 - - [28/Jan/2013:10:39:41 +0000] "GET /OA_HTML/null/search/query/search?search_startnum=&search_endnum=&num=10&search_dupid=&exttimeout=false&group=null&q=&btnSearch=Search&search_p_main_operator=all&search_p_atname=Language&adn=Language&search_p_op=equals&search_p_val=en&search_p_atname=&adn=&search_p_op=equals&search_p_val= HTTP/1.1" 404 134 0 "http://myaixmachine.nonet:41400/OA_HTML/OA.jsp?OAFunc=APPSSEARCH_DEFAULT_RESULTS&SearchableGroup=All&SearchText=&searchGroupDisplayName=null&renderSESUI=Y&retainAM=Y&addBreadCrumb=RP&OAMC=K&_ti=1388080887&oapc=20&oas=JNSHKRyzArPiepE5EfDLFA.." "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0)"
    Thanks,
    Lakshmanan

  • Regarding Google Advanced Search, Firefox no longer saves my settings, such as 'number of results,' which I like to set to 100. The Google default is 10 and Firefox no longer saves my setting of 100.

    In Google Advanced Search, when I click on Search Settings, I go to the drop down box labelled 'Number of Results' and select 100, then click Save Preferences. Until recently Firefox saved my changed settings, but it no longer does so.

    This is caused by the new Google instant search feature. If you disable instant search and use the old style search Google should remember the preferences. The option to turn off instant search is to the right of the search box.

  • Advanced Search: Viewing Results Issue

    This problem seems to only be on my Microsoft Surface Pro tablets with windows 8.1.
    When doing an advanced search within a document the results box is usually very large and you can see all the hits that came back. However, on my Surface when doing a search the results box is so small that you can't even see what's showing up.
    I've tried to enlarge the search box which slightly helps but still can only see one or two results at a time and must continue to use the scroll bar to get through them.
    I was curious if there was any options within Adobe that could be changed in order to get this view changed so its more user friendly and easier to work with?
    I've been through many of the options myself but was unable to find anything that worked.
    Thanks for the help.

    As per my understanding you can crawl DL columns
    Can you get that document in search results page? Please check to see if the site which contains the library is included in content source.
    Could you please check site settings->Site Administration->Searchable columns, maybe the column is excluded?
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/b97a43b1-c727-4daa-a0d9-a18e53e09dd9/list-and-document-library-title-column-crawled-properties?forum=sharepointadminprevious
    Go to your Search Service Application in Central Administration.
        Click on Metadata Properties in the left navigation.
        Click on the Crawled Properties link.
        Click on the Categories link then select the SharePoint category
        Navigate the pages (next page arrow link) until you see ows_Title. Click on ows_Title.
        In the "Mappings to Metadata Properties" area of this page, ensure that the "Include values for this property in the search index" checkbox is checked, then Click OK. This checkbox is not checked by default.
        Repeat the same procedure above for your ows_Description crawled property to confirm that it is included in the index - which it should be by default.
        Start a Full Crawl 
    This will now include these crawled properties in the index and should now be available in the Managed Property which exposes them for Search.
    If this helped you resolve your issue, please mark it Answered

  • Search keywords on Advanced Search Box in SharePoint 2010 cleared on Search Result Page

    I migrated SharePoint 2007/Windows 2003/MS SQL 2005 to SharePoint2010/Windows 2008 R2/MS SQL 2008 system.  New system does not work just like old system and requires some configuration changes.  The search keyword
    on Advanced Search Box is appended to browser address bar instead of remain static in the search field on Search Result page.  Anyone has fix for this so it will work just like SP 2007 version?

    does it give you search results ? Can you provide us the exact string when keyword jumps to browser address bar ? Also provide browser and OS versions.
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

  • Advanced Search - Can't understsand strange results

    Hi,
    I am trying to get my head around what seem to be very odd search results within Portal when using the advanced Search. When I search using a phrase, say
    'the quick brown fox'
    I receive the target page (which contains the text 'the quick brown fox') as the first and only result. That is exactly what I want to happen. However, if I omit single quotes and search for
    the quick brown fox
    I receive lots of results, and the target page I hoped to have returned wasn't even on the list. I am searching with the 'contains all' option. I presume the pages returned contained one or more of the search terms, but I was under the impression the second search automatically searched for the conjunction of all words, and the fact that 'contains all' is selected would suggest to me that my initial search result should be returned even if I use the second search criteria.
    Can anyone explain this strange behaviour?
    Thanks.

    Try reindexing Spotlight >  http://www.ehow.com/how_5341910_reindex-spotlight-find-files.html

  • Filter results for New Search Criteria of Advanced Search

    Hi,
    I'm new to oaf.
    I have added extended VO item to seeded advanced search region as new search criteria by personalization.
    When i try to search for new criteria the results are not filtering and my extended CO logic as follows:
    IN PFR:
    if(oapagecontext.getParameter(oaquerybean.getGoButtonName()) != null || oapagecontext.getParameter(oaquerybean.getPersonalizeGoButtonName()) != null)
    OAAdvancedSearchBean oaadvancedsearchbean = (OAAdvancedSearchBean)oawebbean.findChildRecursive("assetAdvSearch");
    boolean flag = true;
    if(oaadvancedsearchbean != null)
    int i = oaadvancedsearchbean.getDisplayedCriteriaCount();
    String s4 = oapagecontext.getParameter("advancedSearchRadioGroup");
    for(int j = 0; j < i; j++)
    String s6 = (new StringBuilder()).append("Value_").append(Integer.toString(j)).toString();
    String s7 = (new StringBuilder()).append("Condition_").append(Integer.toString(j)).toString();
    String s8 = oaadvancedsearchbean.getOriginalUINodeName(s6);
    if(s8.equals("XXAssocMsgInput"))
    String xx=oapagecontext.getParameter(s6);
    oapagecontext.writeDiagnostics(this, "criteria value: "+xx, 105);
    if (xx !=null) {                                 
    StringBuffer stringbuffer = new StringBuffer(100);
    // Setting whereClause at Runtime to restrict the query
    OAApplicationModule rootam = oapagecontext.getApplicationModule(oawebbean);
    OAApplicationModule childAM = (OAApplicationModule)rootam.findApplicationModule("XXAdvSearchAM");
    OAViewObject vvo1 = (OAViewObject)childAM.findViewObject("XXAdvSearchVO1");
    Serializable[] parameters = {xx};
    childAM.invokeMethod("getAssociateWith", parameters);
    In AMImpl:
    public void getAssociateWith(String xx)
    OAViewObject vo = (OAViewObject)getXXAdvSearchVO1();
    Vector parameters = new Vector(2);
    StringBuffer whereClause = new StringBuffer(100);
    int clauseCount = 0;
    int bindCount = 0;
    vo.setWhereClauseParams(null); // Always reset
    if ((xx!=null) && (!("".equals(xx.trim()))))
    whereClause.append(" ASSOCIATE_WITH LIKE :");
    whereClause.append(++bindCount);
    parameters.addElement(xx);
    clauseCount++;
    vo.setWhereClause(whereClause.toString());
    writeDiagnostics(this,"In AMIMPL whereclause:"+whereClause.toString(),119);
    if (bindCount >0)
    Object[] params=new Object[bindCount];
    parameters.copyInto(params);
    vo.setWhereClauseParams(params);
    writeDiagnostics(this,"In AMIMPL XXAdvSearchVO:"+vo.getQuery(),120);
    writeDiagnostics(this,"In AMIMPL VO Cnt:"+vo.getRowCount(),121);
    vo.executeQuery();
    writeDiagnostics(this,"After query = " + vo.getQuery(),123);
    In diagnostics, parameter is not getting assigned with the value ..
    Can you anyone suggest the inputs?
    Thanks,
    mallik
    Edited by: 758972 on Jul 29, 2012 1:09 PM

    Mallik,
    Is it the same requirement which we were discussing in another thread, to add search criteria in advance serch bean through personalization.
    If yes, let me try at my end and will let you know..
    --Parag Narkhede                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How do you create a "back to search results" link in PHP MySQL

    Can someone just explain the basic principle behind this one:
    I have a search facility which reveals a search results page - a  list of products. After clicking on a product you then go on to another menu of product images which you may (or may not) trawl through. At present when a user is finished they have to click the back button until they get back to the search results (which could be ten clicks or more).
    I would like to create a link on the product detail page and product images page that simply allowed the user to "Go back to search results".
    So how do I capture the search results url+ parameters to allow me to do that?
    Can anyone give me a pointer or two?
    Cheers
    Dave

    Okay, I'm pretty sure I can figure that one out. But before I get stuck in this question springs to mind.
    I may be being a bit daft here but at present the search form is set up to deal with the $_POST variables from the form on that page when they are submitted.If I send users back to that page armed with the session variables (which now have the same values as the original $_POST variables how can I get the page to automatically use the session variables instead of the $_POST variables it is waiting for?
    Dave

  • How can i do an advanced search? do not require the sponsored results

    how can i do an advanced search? do not require the sponsored results

    https://addons.mozilla.org/en-US/firefox/addon/99836/ does this
    The bug filed for having this built-in to Firefox is:
    https://bugzilla.mozilla.org/show_bug.cgi?id=298127

Maybe you are looking for

  • How do I move my Time Capsule from Ethernet back to Wireless?

    Problem: i need to back to wireless use of TC from temporary use of TC via Ethernet. Background: I have had my Time Capsule set up for years as my Airport / wireless hub and backup. No problem. Until I went to restore iPhone from Time Machine and, se

  • File upload abort after long time

    Hi, I am trying to upload big files to individual table with BLOB column. During upload process after long time approx. 2h I get the following error message: [#|2012-08-01T19:03:01.667+0200|WARNING|sun-appserver2.1|java.lang.Class|_ThreadID=27;_Threa

  • Adobe Acrobat no longer works on my Apple 10.5.8 after upgrading latest patch?

    After my Apple 10.5.8 OS automatically downloaded the latest Adobe Acrobat the other day, (after I ok'd it), it no longer works at all, can't open any pdf's at all. It says the following: The currently selected language resources are not supported by

  • 64 bit on 15" MBP i7

    I just made an 85GB partition and tried installing Windows 7 64-bit from a legit DVD. The disc is ejected after a few seconds and there is no message on screen. If I put the 32 bit DVD in there it works fine and installs, but I want to have 64 bit if

  • Please recommend photo management software.Thank you.

    Hi everyone, I am looking for suggestions and advice about photo database management software. I will be graduating as a veterinarian in February and plan to document my forthcoming cases, using photos and perhaps some videos. At this point in time I