<?php
require("../../config/koneksi.php");
require("../../config/function.php");
require("../../config/crud.php");
$tanggal=date('Y-m-d');
?>

                  <div class='direct-chat-messages'>
		 <?php $pesan = mysqli_query($koneksi, "SELECT * FROM pesan JOIN kontakme ON kontakme.nomor=pesan.nomor ORDER BY pesan.id DESC LIMIT 6"); ?>
                            <?php while ($p = mysqli_fetch_array($pesan)){ ?>
                               
				
						<div class="alert alert-custom" role="alert">
                          <div class="custom-alert-icon icon-success">
						  <img src='<?= $homeurl ?>/dist/img/guru.png' width='45'></span>
							
						  </div>
                            <div class="alert-content">
								  <span class="alert-title">Kepada : <?= $p['nama_kontak'] ?></span>
								  <span class="title">Terkirim : <?= $p['waktu'] ?></span><p>
								  <span class="title"><i class='fa fa-envelope'></i> <?= $p['pesan'] ?></span>
							</div>
							</div>
							
							
						
						
		<?php } ?>