Jump to content

Archived

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

mcmuney

LIKE

Recommended Posts

Can someone validate the code below, I basically want to use... if something starts with http%:

if($reset3[0][sm_bg_contactbox] LIKE 'http%')

Share this post


Link to post
Share on other sites
LIKE is an SQL operator, you can't use it in PHP. This would work in PHP:

if (substr($reset3[0][sm_bg_contactbox], 0, 4) == 'http')

Share this post


Link to post
Share on other sites

×

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.