Gossamer Forum
Home : Products : Gossamer Links : PHP Front End :

Like operator

Quote Reply
Like operator
Hello all,

I tired to use Like operator in the template. But whenever I use it, it always give me error. My like operator is like this:

<?if ($Filed Like 'Dildo') {?>
Something
<?} else {?>
other things
<?}?>

Is there anything wrong with my tag?

Thanks for any comments in advanced.
Quote Reply
Re: [maxbear] Like operator In reply to
"Like" isn't valid php. You probably want to use a regular expression; see the php manual for more help (more specifically, preg_match).

Adrian