Jump to content

dlsweb

New Members
  • Posts

    3
  • Joined

  • Last visited

dlsweb's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. thanks much but did not return bname listings and when I tried $query .= " and keywords like '%$bname%' and category like '%Mycategory%'"; rather than $query .= " and keywords like '%$skey%' and category like '%Mycategory%'"; it did not work either I guess I will have to hire someone to do tks
  2. Hi This non php person would sure appreciate some help. My site has a simple search box. Upon searching for a keyword, it returns listings which match 1 of 10 keywords included in that specific listing- skey. $query .= " and keywords like '%$skey%' and category like '%Mycategory%'"; I would like to also have the "bname" field checked for the specific keyword and included in the listings returned. Not knowing php at all, I tried this $query .= " and keywords like '%$skey%' or '%bname%' and category like '%Mycategory%'"; and $query .= " and keywords like '%$skey%' or '%$bname%' and category like '%Mycategory%'"; which did not work. A little help with correct code would be great. Tks, Larry
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.