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.
<table width="100%" border="0" cellspacing="0" style="border: none;">
<tr>
<td class="m_tables_h" style="border-left: none; font: 12px verdana; color: #555;">Теми</td>
<td class="m_tables_h" style="padding: 0 4px; font: 11px verdana; color: #555;">Отговори</td>
<td class="m_tables_h" style="padding: 0 4px; font: 11px verdana; color: #555;">Видяна</td>
<td class="m_tables_h" style="font: 11px verdana; color: #555;">Последна публикация</td>
</tr>
<?php
require 'config_forum.php';
$query = mysql_query("SELECT topic_id, topic_first_post_id, topic_last_poster_id, topic_first_poster_name, topic_views, topic_last_poster_colour, topic_first_poster_colour, topic_last_post_subject, topic_replies, topic_last_poster_name, topic_title FROM `phpbb_topics` ORDER BY `topic_id` DESC LIMIT 10") or die (mysql_error());
while($row = mysql_fetch_array($query))
{
?>
<tr >
<td class='m_tables_m' style="background: #f4f4f4; text-align: left; border-left: none; padding-left: 2px; "><a href="forum/viewtopic.php?t=<?php print $row['topic_id']; ?>" title="<?php print $row[' topic_last_post_subject']; ?>"><img src="images/posts.png" alt="posts" /> <?php print $row['topic_title']; ?></a> <br />От: <a href='forum/memberlist.php?mode=viewprofile&u=<?php print $row['topic_first_post_id']; ?>' style='color:#<?php print $row['topic_first_poster_colour']; ?>;'><?php print $row['topic_first_poster_name']; ?></a></td>
<td class='m_tables_m' style="background: #f4f4f4; text-align: center; font: 12px verdana; color: #555; "><?php print $row['topic_replies']; ?></td>
<td class='m_tables_m' style="background: #f4f4f4; text-align: center; font: 12px verdana; color: #555; "><?php print $row['topic_views']; ?></td>
<td class='m_tables_m' style="background: #f4f4f4; text-align: center; font: 12px verdana; color: #555; "><span style='float: left'>От <a href='forum/memberlist.php?mode=viewprofile&u=<?php print $row['topic_last_poster_id']; ?>' style='color:#<?php print $row['topic_last_poster_colour']; ?>;'><?php print $row['topic_last_poster_name']; ?></a></span></td>
</tr>
<?php
}
?>
</table>
<?php
$server = "localhost";
$username = "username";
$password = "password";
$db_name = "db_name";
$connect = mysql_connect($server, $username, $password) or die (mysql_error());
mysql_select_db($db_name, $connect) or die (mysql_error());
mysql_query("SET NAMES utf8");
?>