Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="leftpanel">
- <div align="justify" class="graypanel"> <span class="smalltitle">News</span><br />
- <br />
- <?php
- $news_sql = "SELECT * FROM news ORDER BY news_date LIMIT 3";
- $news_result = mysql_query($news_sql)or die(mysql_error());
- while ($news_rows = mysql_fetch_assoc($news_result)){
- echo '
- <span class="smallredtext">'.$news_rows['news_date'].'</span><br />
- <span class="bodytext">'.$news_rows['news_text'].'</span><br />
- <a href="#" class="smallgraytext">More...</a><br />
- <br />
- ';
- }
- ?>
- </div>
- </div>
Add Comment
Please, Sign In to add comment