Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "configuration.php";
- mysql_connect($db_host,$db_username,$db_password) or die("con");
- mysql_select_db($db_name) or die("baza");
- $get = mysql_query("SELECT id,title,announcement,date from tblannouncements
- order by id desc");
- while($e = mysql_fetch_array($get)){
- $naslov = $e["title"];
- $vijest = $e["announcement"];
- $vrijeme = $e["date"];
- echo '<h2 style="color:#1B313A;font-size:14px;"><b>'.$naslov.'</b></h2>
- <p class="small"><strong>'.$vrijeme.'</strong></p>
- '.$vijest.'
- <hr /><br />';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement