Welcome to TalkGraphics.com
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Feb 2017
    Posts
    5

    Default Re: MYSQL & Php Search "no results found" everytime ??

    I figured out what the <hr/> tag does... it just adds a straight line.

  2. #2
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,903

    Default Re: MYSQL & Php Search "no results found" everytime ??

    If you were to put the detail here into a console, it would probably fail:
    $query = "SELECT * FROM mytablename WHERE";

    foreach ($terms as $each){
    $i++;
    if ($i == 1)
    $query .= "keywords LIKE '%each%' ";
    else
    $query .= "OR keyword LIKE '%each%' ";
    as the result would show "...WHEREkeywords .." and "WHEREOR ..."

    You need to put a space after the WHERE inside the double quotes: $query = "SELECT * FROM mytablename WHERE ";

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •