|
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 |
id9999i Smarty n00b
Joined: 09 Aug 2009 Posts: 1
|
Posted: Sun Aug 09, 2009 10:59 am Post subject: Svoy tag |
|
|
Zdravstvuyte!
Skajite pojaluysta, kak sdelat' svoy teg, dopustip {top_news}
Chtoby on zamenyalsya na rezul'tat raboty skripta
Vot hochu chtoby smarty zamenyal {top_news} na rezul'tat raboty etogo skripta:
$query = mysql_query ("SELECT title, id FROM posts ORDER BY views DESC LIMIT 0, 10", $db);
$top_posts = mysql_fetch_array ($query);
do {
echo "<li><a href=\"view.php?id=$top_posts[id]\">$top_posts[title]</a></li>\r\n";
}
while ($top_posts = mysql_fetch_array ($query)); |
|
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
|