Re: Variable search help still needed - sorry :-(

From: Date: Sat, 19 Jan 2002 19:00:26 +0000
Subject: Re: Variable search help still needed - sorry :-(
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-16001@lists.php.net to get a copy of this message
On Sat, 19 Jan 2002, Chris Payne wrote: > Hi there, > > I made some of the changes you said below, and when I check the query I get > this: > > The query is SELECT distinct description, email, url, country, category, > type, rating from search6 WHERE description LIKE '%word%'AND category = > 'Automotive' AND country = 'Austria' AND type = 'Car Rental' > ORDER BY > description > > > so to me it doesn't appear to be putting the array item in there, or am I > wrong? I am confused, thanks for your help. > > > You should probably be using: > > > > $sql .= " description LIKE '%word%' OR "; # note the spaces Missed this error the first time round. It should be: $sql .= " description LIKE '%$word%' OR "; # note the $!! hth -- Jason Wong

« previous php.db (#16001) next »