Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include '/home/.../public_html/member/koneksi.php';
- $q=mysql_query("select distinct dari from pesan where untuk='55555' group by waktu desc");
- while($r=mysql_fetch_array($q)){
- $dari=$r['dari'];
- $query=mysql_query("select*from pesan where dari='$dari' and untuk='55555' order by waktu desc");
- while($atsv=mysql_fetch_array($query)){
- echo"Dari:$atsv[dari]";
- $id=$atsv['id'];
- $atsq=mysql_query("select*from pesan where id='$id' order by waktu desc limit 1");
- while($atsx=mysql_fetch_array($atsq)){
- echo"<br/>$atsx[pesan]<p>";
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment