Pm all users code...
$pmtou = $_POST["pmtou"];
$byuid = getuid_sid($sid);
$tm = time();
$lastpm = mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid='".$byuid."'"));
echo "All users has been send a pm
";
$pms = mysql_query("SELECT id, name FROM ibwf_users WHERE lastact>'".$tm24."'");
$tm = time();
while($pm=mysql_fetch_array($pms))
{
mysql_query("INSERT INTO ibwf_private SET text='[b]Public Anouncment:[/b][br/]".$pmtou."[br/][i]This message was sent to all the spiderwap members[/i]', byuid='".$byuid."', touid='".$pm[0]."', timesent='".$tm."'");
}
I won't be able to help anymore, you guys won't be able to rich me by email, im closed down