Re: [PHP-DB] explode () and mySQL query

2008-06-03 Thread Chris
Thodoris wrote: > O/H Ron Piggott ??: >> I am trying to add a search feature to my shopping cart. >> >> I am wanting to use PHP to develop the query for mySQL. I have the >> following code figured out: >> >> foreach(explode(" ", $keyword) as $key) $query .= " $key, "; >> >> This produces: >> >

Re: [PHP-DB] explode () and mySQL query

2008-06-03 Thread Thodoris
O/H Ron Piggott ??: I am trying to add a search feature to my shopping cart. I am wanting to use PHP to develop the query for mySQL. I have the following code figured out: foreach(explode(" ", $keyword) as $key) $query .= " $key, "; This produces: WHERE shopping_cart_product.product_desc

Re: [PHP-DB] explode () and mySQL query

2008-05-28 Thread Chris
Ron Piggott wrote: > I am trying to add a search feature to my shopping cart. > > I am wanting to use PHP to develop the query for mySQL. I have the > following code figured out: > > foreach(explode(" ", $keyword) as $key) $query .= " $key, "; I hope this isn't a copy/paste from your code as it

[PHP-DB] explode () and mySQL query

2008-05-28 Thread Ron Piggott
I am trying to add a search feature to my shopping cart. I am wanting to use PHP to develop the query for mySQL. I have the following code figured out: foreach(explode(" ", $keyword) as $key) $query .= " $key, "; This produces: WHERE shopping_cart_product.product_description IN ( Jesus, is, Lo