hello friends, i have made this topic invite function.. but i am only able to select only 1 username to send invite.. but i want my users to send invite to multiple users by seperating username with comas in txtboz..
Code:
if($action=="sendinvi"){ echo "<p align=\"left\">"; $pmtou = $_POST["usn"]; $who = getuid_nick($pmtou); $whonick = getnick_uid($who); addonline(getuid_sid($sid),"inviting users to topic",""); $byuid = getuid_sid($sid); $tm = time(); $pmtext = "txt"; $dm = mysql_fetch_array(mysql_query("SELECT id FROM hfjgn_users WHERE name='".$unm."'")); $res = mysql_query("INSERT INTO hfjgn_private SET text='".$pmtext."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'"); echo "<img src=\"images/ok.gif\" alt=\"O\"/>"; echo "PM was sent successfully to $whonick<br/><br/>"; echo parsepm($pmtext, $sid); echo "<br/><br/><a href=\"121inbox121.php?action=disp\">Back to MailBox</a><br/>";
Comment