Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Article Content Plugin

 
Post new topic   Reply to topic    Smarty Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
blacksnday
Smarty n00b


Joined: 12 May 2005
Posts: 2

PostPosted: Wed Aug 23, 2006 11:18 pm    Post subject: Article Content Plugin Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Plugins All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP