Advertisement
Guest User

avenas8808

a guest
Jul 15th, 2011
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. <?php
  2. $connection = mysql_connect("localhost", "root", "PASSWORD") or die("Error connecting to database");
  3. mysql_select_db("radio1", $connection);
  4. $result = mysql_query("SELECT * FROM presenters1;", $connection) or die("error querying database");
  5. $i = 0;
  6. while($result_ar = mysql_fetch_assoc($result)){
  7. ?>
  8. <div class="divider"></div>
  9. <div class="main" style="width:552px;">
  10. <img src="<?php echo $result_ar['image']; ?>" width=115 height=60>
  11. <div class="time"><? php echo strotime ('H') $result_ar['airtime']; ?></div>
  12. <div class="show"><h3><b>
  13. <?php
  14. if ( empty( $result_ar['link'] ) ) {
  15. echo $result_ar['presenter'];
  16. }
  17. else {
  18. echo '<a href="' . $result_ar['link'] . '">' . $result_ar['presenter'] . '</a>';
  19. }
  20. ?>
  21. </b></h3>
  22.  
  23.  
  24.  
  25.  
  26. <p><?php echo $result_ar['showinfo']; ?></p></div>
  27. <div class="footer"></div>
  28. </div>
  29. <?php
  30. $i+=1;
  31. }
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement