Re: Searching a MySQL database?
| From: | James, Yz | Date: | Sun, 14 Jan 2001 22:12:39 +0000 |
| Subject: | Re: Searching a MySQL database? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34507@lists.php.net to get a copy of this message | ||
> You've basically got it... the advantage of LIKE is that you can add
> wildcards to specify what can be different...
>
> towns = '$town'
> ...and...
> towns LIKE '$town'
>
> ...are essentially the same without the % wildcard character. Thus,
>
> towns = '$town'
> ...is much different than...
> towns LIKE '%$town%'
How different are they? I'm not even sure what a wildcard is....?
And thanks ;)
James.