mcmuney Posted March 24, 2006 Share Posted March 24, 2006 Can someone validate the code below, I basically want to use... if something starts with http%:if($reset3[0][sm_bg_contactbox] LIKE 'http%') Link to comment https://forums.phpfreaks.com/topic/5652-like/ Share on other sites More sharing options...
wickning1 Posted March 24, 2006 Share Posted March 24, 2006 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') Link to comment https://forums.phpfreaks.com/topic/5652-like/#findComment-20182 Share on other sites More sharing options...
mcmuney Posted March 24, 2006 Author Share Posted March 24, 2006 That didn't work, is that correct? Link to comment https://forums.phpfreaks.com/topic/5652-like/#findComment-20200 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.