Jump to content

LIKE %% with IF statements


soltek

Recommended Posts

Hey guys,

 

is there any way to have a LIKE condition on an IF statement?

Something like:

 if $GET_['WTV'] LIKE %LOVE% {
$category=romance

 

Any clues?

Thanks in advance.

 

You can use preg_match.  The syntax you're using is SQL.

 

Damn, it sucks to be a noob.

Thanks for your help.

Have a nice christmas =)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.