Member
Member
quaker   23-04-2009, 17:55
#1

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

Latest News

[list]

Member
Member
quaker   23-04-2009, 17:58
#2

to get more listed please change the 5 to what every number you need.
from:
DESC LIMIT 5';
to:
DESC LIMIT 10';

Q

Administrator
Member
Member
quaker   24-04-2009, 12:46
#4

i had a friend look at the docs and he did it that way..
if there is a cleaner way could someone post the code?

Q

Administrator
Administrator
acrylian   24-04-2009, 13:39
#5

That's what I did above...

Member
Member
quaker   24-04-2009, 15:37
#6

Why, When you echo getLatestNews() you end up with Array

Then if you use implode on it you get Array times 5?

What is the correct way to use this function?

Administrator
Administrator
acrylian   24-04-2009, 15:44
#7

Because that function returns an multidimensional array. You need to use a forech loop and call the field to be echoed like in the example you posted above. Why don't you use printLatestNews()? That even prints a list as all the other functions in the sidebar.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.