Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
mysql_connect("localhost",$user,$pass);
mysql_select_db($db) or die( "Unable to select database");
$query="SELECT c.topic_time , c.topic_title,c.forum_id,c.topic_id, c.topic_replies,c.topic_type,f.forum_name FROM phpbb_topics c, phpbb_forums f WHERE c.forum_id=f.forum_id and f.auth_view like '0' ORDER BY c.topic_time ";
$result=mysql_query($query);
$num=mysql_num_rows($result);
mysql_close();
$ii=$num-$broi_temi;
for ($i=$num-1; $i>$ii;$i--)
{
$tema=mysql_result($result,$i,"c.topic_title");
$id=mysql_result($result,$i,"c.forum_id");
$topic_broi=mysql_result($result,$i,"c.topic_replies");
$topic_id=mysql_result($result,$i,"c.topic_id");
$topic=mysql_result($result,$i,"c.topic_type");
$cat=mysql_result($result,$i,"f.forum_name");
if (strlen($tema)>$broi_bukvi)
{$totchki='...';}
else
{$totchki='';}
$tema=substr($tema,0 , $broi_bukvi);
echo" » $cat: <a href='http://името на сайта ти/forum/viewtopic.php?t=$topic_id' >$tema$totchki ($topic_broi)</a><br/>";
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\Program Files\xampp\htdocs\administration\panel_editor.php(111) : eval()'d code on line 91
$row2=mysql_fetch_array($result2);
Не ми се иска да е с RSS... Скрипта, който дадох е перфектен... Просто не ми извежда заглавието на раздела, в който е темата.svilkaa каза:Сложи си RSS във форума и изпозлвай това - виж