Re: Searching a MySQL database?

From: Date: Sun, 14 Jan 2001 22:04:35 +0000
Subject: Re: Searching a MySQL database?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34506@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%' --Toby

« previous php.general (#34506) next »