Admin as I would like to send PM avin female members and that this message does not get men. I have done it this way and gives me info that the message is sent, but members of the Ladies do not receive, not winning is no one ... where is the bug? CODEif($action=="ppzene") { echo "<card id="main" title="PP svima">"; echo " "; $whonick = getnick_uid($who); $byuid = getuid_sid($sid); str_replace("$","$",$poruka);
$tm = time()+(76060);
$sex = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE sex='F'")); $sex = $sex[0]; $text = "$poruka [br/]PS:Ovo je automatska poruka i poslao je Admin.Ne treba odgovarati na nju!"; for ($i=1; $i <= $sex; $i++) {
$ppzene = mysql_query("INSERT INTO ibwf_private SET text='".$text."', byuid='".$byuid."', touid='".$i."', timesent='".$tm."'");
} please help ...This code I put in inboxproc.php file. This of course would like to do and for male members ... that does not send pm all members but especially male and especially female .....