News Promo Glitch

Detox

Member
Jul 24, 2010
365
24

This is my PHP code I'm using

PHP:
<?php
$news = mysql_query("SELECT * FROM news_promo ORDER BY `order_id` DESC");
if(mysql_num_rows($news) == 0)
{
    echo '';
}
else
{
    echo '<div id="promo-box">';
    echo '<div id="promo-bullets"></div>';
}
 
while($row = mysql_fetch_array($news))
{
    $id = $row['id'];
    $title = $row['title'];
    $text = $row['text'];
    $image_url = $row['image_url'];
    $url = $row['url'];
    $url_text = $row['url_text'];
         
    echo '<div class="promo-container" style="background-image: url(' .$image_url. ')">
          <div class="promo-content-container">
          <div class="promo-content">
          <div class="title">' .$title. '</div>
          <div class="body">' .$text. '</div>
          </div>
          </div>
          <div class="promo-link-container">
          <div class="enter-hotel-btn">
          <div class="open enter-btn">
          <a href="' .$url. '" target="a02ce3581bfb74fd6b4865171ed64cf3aaccc80e" onclick="HabboClient.openOrFocus(this); return false;">' .$url_text. '<i></i></a>
          <b></b>
          </div>
          </div>
          </div>
          </div>
        ';
}
?>
 

Users who are viewing this thread

Top