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%') Quote Link to comment 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') Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.