Can you post the codes and usage code of this script??
THANKS IN ADVANCE!!
THANKS IN ADVANCE!!
else if($action=="last10topic")
{
addonline(getuid_sid($sid),"<b> Last 10 topic</b>","index.php?action=$action");
echo "<card id=\"main\" title=\"Last 10 topic\">";
echo "<timer value=\"300\"/>";
//////ALL LISTS SCRIPT <<
if($page=="" || $page<=0)$page=1;
$num_items = regmemcount(); //changable
$items_per_page= 10;
$num_pages = ceil($num_items/$items_per_page);
if(($page>$num_pages)&&$page!=1)$page= $num_pages;
$limit_start = ($page-1)*$items_per_page;
//changable sql
$sql = "SELECT id, name, lastpost FROM ibwf_topics ORDER BY lastpost DESC
LIMIT 0 , 10 ";
echo "<p align=\"center\">";
echo "<b> Last activ topic:</b><br/><br/>";
$items = mysql_query($sql);
echo mysql_error();
if(mysql_num_rows($items)>0)
{
while ($item = mysql_fetch_array($items))
{
$lnk = "<a href=\"index.php?action=viewtpc&sid=$sid&tid=$item[0]&go=last\">$item[1]</a>";
echo "$lnk<br/>";
}
}
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
echo "<img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/> <a href=\"index.php?action=main&sid=$sid\">";
echo "Home</a>";
echo "</p>";
echo "</card>";
}
echo "<a href=\"index.php?action=last10topic&sid=$sid\">~Activ topic~</a><br/>";
echo "<timer value=\"300\"/>";
Comment