Okay I am know how to code and all but for some reason the code I made for the new's on the page/me isn't scrolling/going to other pages like I want it to here is my code what I made
can someone highlight it in red so I know what is making it from not showing my next/other new's? Also I need help if someone can find or give me the /stats page because my badges I have nor my character/avatar show this is what I mean Screenshot by Lightshot , Thanks all for helping or veiwing this page.PHP Code:<?php $sql = $db->query("SELECT * FROM ".PREFIX."news ORDER BY id DESC LIMIT 5");$i = 0;while($row = $db->fetch_assoc($sql)){ $row['summary'] = nl2br($input->HoloText($row['summary'], true)); $row['title'] = $input->HoloText($row['title'], true); $row['title_safe'] = $input->stringToURL($input->HoloText($row['title'],true),true,true); $row['date'] = date('M j, Y', $row['time']); $news[$i] = $row; $i++;}?> <div id="newspromo"> <div id="topstories"> <div class="topstory" style="background-image: url(<?php echo $news[0]['header_image']; ?>)"> <h4><?php echo $lang->loc['latest.news']; ?></a></h4> <h3><a href="<?php echo PATH."/articles/".$news[0]['id']."-".$news[0]['title_safe']; ?>"><?php echo $news[0]['title']; ?></a></h3> <p class="summary"> <?php echo $news[0]['summary']; ?> </p> <p> <a href="<?php echo PATH."/articles/".$news[0]['id']."-".$news[0]['title_safe']; ?>"><?php echo $lang->loc['read.more']; ?></a> </p> </div> <div id="topstories-nav" style="display: none"><a href="#" class="prev"><?php echo $lang->loc['news.previous']; ?></a><span>1</span> / 3<a href="#" class="next"><?php echo $lang->loc['news.next']; ?></a></div> </div> <ul class="widelist"> <li class="even"> <a href="<?php echo PATH."/articles/".$news[1]['id']."-".$news[1]['title_safe']; ?>"><?php echo $news[1]['title']; ?></a><div class="newsitem-date"><?php echo $news[1]['date']; ?></div> </li> <li class="odd"> <a href="<?php echo PATH."/articles/".$news[2]['id']."-".$news[2]['title_safe']; ?>"><?php echo $news[2]['title']; ?></a><div class="newsitem-date"><?php echo $news[2]['date']; ?></div> </li> <li class="last"><a href="<?php echo PATH; ?>/articles"><?php echo $lang->loc['news.more']; ?></a></li> </ul></div><script type="text/javascript"> document.observe("dom:loaded", function() { NewsPromo.init(); });</script>
-Kyle


Reply With Quote

