Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host="localhost";
- $user="root";
- $pass="root";
- $db_name="news";
- $link=mysql_connect($host,$user,$pass);
- mysql_select_db($db_name,$link);
- $sql = mysql_query("SELECT `ID`, `Date`, `Top_news` FROM `New`", $link);
- while ($result = mysql_fetch_array($sql)) {
- echo $result['Date']." : ".$result['Top_news']. "<br>" ;
- ?>
Add Comment
Please, Sign In to add comment