mysql query or php

Asked

Viewed 15 times

1

???????????

  <div class="aa-search-box">
              <form action="" method="get">
                <input type="text" name="cat" placeholder="Pesquisar aqui. Ex.: 'CA 5111">
                <button type="submit"><span class="fa fa-search"></span></button>
              </form>
            </div>

---straw

Else { $aKeyword = explode(" ", $_GET['cat']); $get_products = "SELECT * FROM products WHERE product_title like % . $aKeyword[0] . %"; if(Count($aKeyword) > 1) { for($i = 1; $i < Count($aKeyword); $i++) { $get_products .= " OR product_title like % . $aKeyword[$i] . %"; } }

}
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.