Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199807

Re: [PHP3] like? From: Barry Voeten (barry <email protected>)
Date: 07/21/98

Lars Göransson wrote:
>
> I wonder why wont this work. Should It result in that i could search for
> a name or adress in same formfield?
>
> $query = "select name, address from addressreg where name like '$input%'
> or
> address '$input%'";

I would do like '%$this%'; eg,
  $found=db_query("select * from tasks where summary like '%$summary%'
");

goodluck, barry

> Regards,
> Lars
>
> --
> PHP 3 Mailing List http://www.php.net/
> To unsubscribe send an empty message to php3-unsubscribe <email protected>
> To subscribe to the digest list: php3-digest-subscribe <email protected>
> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3

-- 
+++++++++++++++++++++++++++++++++++++++++
+  Barry Voeten barry <email protected> +
+  Netland Internet Services  Amsterdam + 
+  Web Engineering  Design  Hosting     +
+  www.netland.nl + 31 (0) 20 6943664   +

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3