All pastes #743363 Raw Edit

Untitled

public text v1 · immutable
·published 2007-10-20 11:31 UTC
rendered paste body
 if (trim($_GET['DomainName']) != "")
  {
   if ($_GET['Exdate'] == "-----") || strstr(strtolower($_GET['Exdate']),'n'))
    {
     $mydate = "0000-00-00";
    }
   else
    {
     $mydate = $_GET['Exdate'];
    }
  }


I belive that problom is with the strstr function... in this case. i use it so it would return TRUE (but.. as far as i saw at php.net -> it doesn't return TRUE)...

what i'm trying to do here is 2 cases.. 1 if exdate = ----- or (||) the char 'n' is in $_GET['Exdate']