Gayner Posted September 1, 2009 Share Posted September 1, 2009 if ($ibforums->member['name'] == "gayner,burley") { $ez = "<a href='index.php?act=Help&CODE=92&HID=$id'>Edit</font>"; } this gives me error.. I want those 2 names to beable to work.. gayner and burley.. thx Quote Link to comment https://forums.phpfreaks.com/topic/172655-solved-simple-if-if-ibforums-membername/ Share on other sites More sharing options...
Philip Posted September 1, 2009 Share Posted September 1, 2009 if(in_array($ibforums->member['name'], array('gayner', 'burley'))) { Quote Link to comment https://forums.phpfreaks.com/topic/172655-solved-simple-if-if-ibforums-membername/#findComment-910074 Share on other sites More sharing options...
Gayner Posted September 1, 2009 Author Share Posted September 1, 2009 if(in_array($ibforums->member['name'], array('gayner', 'burley'))) { Thank u sir works wonderful! Can u help me on making it so it's not Case SensitivE? Quote Link to comment https://forums.phpfreaks.com/topic/172655-solved-simple-if-if-ibforums-membername/#findComment-910084 Share on other sites More sharing options...
Philip Posted September 1, 2009 Share Posted September 1, 2009 if(in_array(strtolower($ibforums->member['name']), array('gayner', 'burley'))) { Quote Link to comment https://forums.phpfreaks.com/topic/172655-solved-simple-if-if-ibforums-membername/#findComment-910086 Share on other sites More sharing options...
Gayner Posted September 1, 2009 Author Share Posted September 1, 2009 if(in_array(strtolower($ibforums->member['name']), array('gayner', 'burley'))) { Ok now your pro. Quote Link to comment https://forums.phpfreaks.com/topic/172655-solved-simple-if-if-ibforums-membername/#findComment-910090 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.