Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <?php
  2. include "clients/configuration.php";
  3. mysql_connect($db_host,$db_username,$db_password) or die("con");
  4. mysql_select_db($db_name) or die("baza");
  5.  
  6. $get = mysql_query("SELECT id,title,announcement,date from tblannouncements
  7.  
  8. order by date desc limit 5");
  9. while($e = mysql_fetch_array($get)){
  10. $naslov = $e["title"];
  11. $id = $e["id"];
  12.  
  13. echo '<h2 style="color:#1B313A;font-size:14px;"><b><a href="announcements.php?
  14.  
  15. id='.$id.'>'.$naslov.'</a></b></h2><hr /><br />';
  16. }
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement