Michdd Posted November 6, 2008 Share Posted November 6, 2008 I don't know why I'm having troubles with this, because it's a really simple problem. But how would I correct set a if, true statement for stripos? I tried: $check = stripos($ips, $ip); if ($check === false){ } But there must be something wrong with my if statement? Quote Link to comment https://forums.phpfreaks.com/topic/131573-solved-really-stupid-question/ Share on other sites More sharing options...
AndyB Posted November 6, 2008 Share Posted November 6, 2008 http://ca.php.net/manual/en/function.stripos.php - look at example #1 Quote Link to comment https://forums.phpfreaks.com/topic/131573-solved-really-stupid-question/#findComment-683382 Share on other sites More sharing options...
Michdd Posted November 6, 2008 Author Share Posted November 6, 2008 http://ca.php.net/manual/en/function.stripos.php - look at example #1 Yea, I already knew how it was used. And I was even stupider than I thought, I made a mistake with my MySql commands, I had it creating a new row instead of inserting it into the current row selected, so that's obviously why the string wasn't found. Thanks anyways. Quote Link to comment https://forums.phpfreaks.com/topic/131573-solved-really-stupid-question/#findComment-683383 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.