Files
Roosters/php/getVerBericht.php
T
2026-06-17 11:55:21 +02:00

21 lines
759 B
PHP

<?php
SESSION_START();
require('connect.php');
$name = $_SESSION['name'];
if($_SESSION['login']>1){
$query = "SELECT * FROM `bericht` WHERE `sender`='$name' ORDER BY id DESC LIMIT 0,20";
$result_temp = mysql_query($query, $connection);
$table = "<table cellpadding=2 class='bericht'><tr><th width='100' align='left'>Ontvanger</th><th width='300' align='left' class='leftline'>Bericht</th><th width='200' align='left' class='leftline'>Datum</th></tr>";
while($result = mysql_fetch_assoc($result_temp)){
$table .= "<tr><td>" . $result['receiver'] . "</td><td class='leftline'>" . $result['msg'] . "</td><td class='leftline'>" . $result['send_time'] . "</td><tr>";
}
$table .= "</table>";
echo $table;
}
else { echo false; }
?>