|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
blacksnday Smarty n00b
Joined: 12 May 2005 Posts: 2
|
Posted: Wed Aug 23, 2006 11:18 pm Post subject: Article Content Plugin |
|
|
I am trying to create something similar to a
"Latest News" plugin, where each row can be seperately
styled and requested in the template. but cant seem to figure out
how to make it properly.
How should the below example be made as a plugin
for this purpose?
[php:1:f42e627d81]$query = "SELECT * FROM table ORDER BY RAND() LIMIT 1";
$result = mysql_query($query);
$news = array();
while ($rows = mysql_fetch_array ($result)) array_push ($news, $rows);
return $news;[/php:1:f42e627d81] |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|