
<?PHP
$link = mysql_connect("localhost", "root", "benk"); mysql_select_db("cma", $link);
$SQL     = "SELECT * FROM pengumuman ORDER By i_id DESC LIMIT 5";
$results = mysql_query($SQL);
while ($row = mysql_fetch_array($results)){
print ('<table width="100%"  border="0" cellspacing="1" cellpadding="4">
                                <tr>
                                  <td width="10%" bgcolor="#FFCC00"><center>'.$row['i_tgl'].'</center></td>
                                  <td width="90%" bgcolor="#FFFFFF">'.$row['i_kegiatan'].'</td>
                                </tr>
                              </table>');
} 
print ('');
?>

