Help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help

    this is the error that apear to the users when they sent PM :
    an here is the function:
    Code:
    ///////////////////////////////////////////Is site blocked
    
    function isblocked($str,$sender)
    {
      if(ismod($sender))
      {
        return false;
      }
      $str = str_replace(" ","",$str);
      $str = strtolower($str);
        $res = mysql_query("SELECT site FROM lib3rtymrc_blockedsite");
    while ($row = mysql_fetch_array($res)) 
    {
       $sites[] = $row[0];
    }
      for($i=0;$i<count($sites);$i++)
      {
            $nosf = substr_count($str,$sites[$i]);
        if($nosf>0)
        {
          return true;
        }
      }
      return false;
    }

    here give error : "$nosf = substr_count($str,$sites[$i]);"


    plz help me fix the problem
    Hate romains that take codes from here and tell to all that they had made that

    #2
    $sites[] = $row[0];

    $sites = $row[0];

    Comment


      #3
      ???
      Hate romains that take codes from here and tell to all that they had made that

      Comment


        #4
        :D thx ...wfff
        Hate romains that take codes from here and tell to all that they had made that

        Comment

        Working...
        X