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

// Connects to your Database

mysql_connect("server","user","pass") or die(mysql_error());

mysql_select_db("0lx_3669805_basic_admin ") or die(mysql_error());

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

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