hello..
can somebody explain the concept of sending message or email to many contact at one time.i can send only one contact at a time.how i want to send to many contact by selelcting them in list menu just like sending message in friendster.we can select many contact and send to them at one time.please give me the example of coding.i'm using php..thanks
this is the coding...
<?php
$query2="select dep_code,unit_code,post_code from staff where staff_id = '$id'";
$result2=mysql_query($query2) or die(mysql_error);
$view2=mysql_fetch_array($result2);
$query4="select vip_code from userhistory where vip_code='$view2[post_code]'";
$result4=mysql_query($query4) or die (mysql_error);
$view4=mysql_fetch_array($result4);
$query="select * from userhistory where dep_code ='$view2[dep_code]' and post_code = '$view2[post_code]' and unit_code = '$view2[unit_code]' or vip_code='$view4[vip_code]'";
$result=mysql_query($query) or die(mysql_error);
$view=mysql_fetch_array($result);
do
{
$query3="select staff_name from staff where staff_id = '$view[staff_id]'";
$result3=mysql_query($query3) or die(mysql_error);
$display=mysql_fetch_array($result3);
//$bil++;
echo "<tr>
<td>$display[staff_name]</td>
<td>$view[memo_date]</td>
<td><a href=previewInbox.php?id=$view[history_id]>$view[memo_title]</a></td>
</tr>";
}
while($view=mysql_fetch_array($result));
?>