I had a friend create this .. took him like 5mins to do it.
very simple...... he said.. LMAO..
Demo:
http://256studio.com on sidebar..
Q
<div class="menu">
<h3>Latest News</h3>
<?php
$sql = 'SELECT title, titlelink FROM zp_zenpage_news WHERE `show`=1 ORDER BY date DESC LIMIT 5';
$result = query($sql);
while($latest_news = mysql_fetch_assoc($result)) {
echo '
- '.htmlspecialchars($latest_news['title']).'
';
}
?>
</div>
Comments
from:
DESC LIMIT 5';
to:
DESC LIMIT 10';
Q
if there is a cleaner way could someone post the code?
Q
Then if you use implode on it you get Array times 5?
What is the correct way to use this function?