Location: PHPKode > projects > Basic Announce > UPLOAD/news.php
<?php



// Connects to your Database

Require_once("config.php")

mysql_connect($dbhost,$username,$password) or die(mysql_error());



mysql_select_db($database) or die(mysql_error());



$data = mysql_query("SELECT * FROM $table")



or die(mysql_error());







while($info = mysql_fetch_array( $data ))



{



Print "<tr>";



Print "<td>".$info['Announcement'] . "</td> ";



Print "<br>";



Print "<th>Submitted By:</th> <td>".$info['Submitted'] . "</td> ";



}



;



?> 
Return current item: Basic Announce