| Current Path : /var/www/cesa.co.za/members/inc/ |
| Current File : /var/www/cesa.co.za/members/inc/notice.inc |
<?php
// Database Connection String
$connection = mysql_connect($server, $user, $pass);
mysql_select_db($db,$connection);
$sql= "SELECT topic FROM noticeboard WHERE active ='y' ORDER BY date DESC";
$result = mysql_query($sql);
$result_rows = mysql_num_rows($result);
if ($result_rows > 0) {
echo "<ul>";
while($row = mysql_fetch_array($result)) {
echo "<li>".stripslashes($row["topic"]);
}
echo "</ul>";
} else {
echo "<ul><li><i>There are currently no notices</i></ul>";
}
?>