Log in

View Full Version : Simple Latest Posts


lebstars.com
05-01-2006, 11:37 AM
Hello, I actually wanted this in marquee, but i can do all that

i just would like to know how i can get the latest, e.g 10 posts as an array or something similar, and simple

like
// $posts is an array
foreach($posts as $post){
// $post is also an array
echo "<a href=\"http://domain.com/?t=$post['id']#$post['number']\">$post['name']</a>
By
<a href=\"members.php?id=$post['member']['id']\">$post['member']['name']</a>... ";

Well , that was how it was (nearly) done in SMF

Thanks

Xenium
05-01-2006, 11:46 AM
Why don't you use the new posts button?

http://yourforum.com/search.php?do=getnew

Or do you really need the URL's in a php array?