If.. Contains...

3 posts by 2 authors in: Forums > CMS Builder
Last Post: June 18, 2012   (RSS)

By Toledoh - June 17, 2012

Hi Guys,

I want to do something like:
<?php if ($record['product_group'] == 4): ?>, but where I have multi-values, I miss out on items that equal "3 and 4".

I've tried:
<?php if ($record['product_group'] LIKE '4'): ?> and
<?php if ($record['product_group'] LIKE '%4%'): ?> but keep getting errors...

Any advice?
Cheers,

Tim (toledoh.com.au)

Re: [robin] If.. Contains...

By Toledoh - June 18, 2012

Perfect - thanks Robin!
Cheers,

Tim (toledoh.com.au)