Re: mysql wildcard
| From: | Marco Tabini | Date: | Wed, 08 Jan 2003 21:56:51 +0000 |
| Subject: | Re: mysql wildcard | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-24675@lists.php.net to get a copy of this message | ||
You probably want something like:
select * from offtime where type like '{$type}%'
As a side note, are you making sure that $type does not contain any
malicious code?
Cheers,
Marco
--
----------------
php|architect - The Monthly Magazine for PHP Professionals
Come check us out on the web at http://www.phparch.com!