you heave code for mass friends ???????? only for friends?
I want each user to send mass refers only to his friends list is someone that code
I want each user to send mass refers only to his friends list is someone that code
/////////////////////send GM to all my buddylist else if($action=="b1") { addonline(getuid_sid($sid),"PM all my buddy list",""); echo "<card id=\"main\" title=\"Inbox\">"; echo "<p align=\"center\">"; echo "<u>Send A pm to ur budz</u><br/>"; echo "</p>"; echo "<p align=\"left\">"; echo "<u>mensahe:</u><br/>"; echo "<input name=\"pmtext\" maxlength=\"500\"/><br/>"; echo "<anchor>[ SEND ]<go href=\"inbox.php?action=b2&sid=$sid\" method=\"post\">"; echo "<postfield name=\"pmtext\" value=\"$(pmtext)\"/>"; echo "</go></anchor><br/><br/>"; echo "</p>"; echo "<p align=\"center\">"; echo "----<br/>"; echo "<a href=\"meniu_prim.php?&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</card>"; } else if($action=="b2") { addonline(getuid_sid($sid),"Sending",""); echo "<card id=\"main\" title=\"GM sent!\">"; echo "<p align=\"center\">"; $pmtext = $_POST["pmtext"]; $byuid = getuid_sid($sid); $tm = time(); $lastpm = mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid='".$byuid."'")); echo "Pm all your buddy list!<br/>"; $pms = mysql_query("SELECT a.id, a.name FROM ibwf_users a INNER JOIN ibwf_buddies b ON (a.id = b.uid) OR (a.id=b.tid) WHERE (b.uid='".$uid."' OR b.tid='".$uid."') AND b.agreed='1' AND a.id!='".$uid."'"); $tm = time(); while($pm=mysql_fetch_array($pms)) { mysql_query("INSERT INTO ibwf_private SET text='[b]Send by your BUDDY[/b][br/]".$pmtext."[br/][i]autopm![/i]', byuid='".$byuid."', touid='".$pm[0]."', timesent='".$tm."'"); } echo "<a href=\"meniu_prim.php?&sid=$sid\"><img src=\"../images/home.gif\" alt=\"*\"/>"; echo "main menu</a>"; echo "</p>"; echo "</card>"; }
Comment