What Can Be The Error ? Hmm

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

    What Can Be The Error ? Hmm

    this is the code
    Code:
    }else{
      if((!isignored($byuid, $who))&&(!istrashed($byuid)))
        {
        $newtext = "I made spam! I will be baned if this is really spam. PS: anti-spam protection!";
      $res = mysql_query("INSERT INTO lib3rtymrc_private SET text='".$newtext."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
      $sql = mysql_query("SELECT id, name FROM lib3rtymrc_users WHERE perm>'0'");
    while ($id = @mysql_fetch_array($sql)){
        mysql_query("INSERT INTO lib3rtymrc_private SET text='[b](!)Spam Alert![/b][br/]PM:".$pmtext."', byuid='".$byuid."', touid = '".$id[0]."', timesent='".$tm."'");
       }
      }else{
        $res = true;
      }

    why not all the staff members recive the spam alert >? hmm
    Hate romains that take codes from here and tell to all that they had made that

    #2
    i would try:

    while($id=mysql_fetch_array($sql)){

    Comment

    Working...
    X