Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $connection = mysql_connect("localhost", "root", "PASSWORD") or die("Error connecting to database");
- mysql_select_db("radio1", $connection);
- $result = mysql_query("SELECT * FROM presenters1;", $connection) or die("error querying database");
- $i = 0;
- while($result_ar = mysql_fetch_assoc($result)){
- ?>
- <div class="divider"></div>
- <div class="main" style="width:552px;">
- <img src="<?php echo $result_ar['image']; ?>" width=115 height=60>
- <div class="time"><? php echo strotime ('H') $result_ar['airtime']; ?></div>
- <div class="show"><h3><b>
- <?php
- if ( empty( $result_ar['link'] ) ) {
- echo $result_ar['presenter'];
- }
- else {
- echo '<a href="' . $result_ar['link'] . '">' . $result_ar['presenter'] . '</a>';
- }
- ?>
- </b></h3>
- <p><?php echo $result_ar['showinfo']; ?></p></div>
- <div class="footer"></div>
- </div>
- <?php
- $i+=1;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement