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? 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 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. Link to comment https://forums.phpfreaks.com/topic/131573-solved-really-stupid-question/#findComment-683383 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.