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.
<?php
$host = "localhost";
$user = "user";
$pass = "pass";
$db = "db";
mysql_connect($host,$user,$pass);
mysql_select_db($db) or die( "Unable to select database");
$query = mysql_query("SELECT * FROM phpbb_topics WHERE forum_id LIKE '1' ORDER BY topic_last_post_id desc LIMIT 0,9");
while($rows = mysql_fetch_array($query))
{
print "<table border='0'><tr><td>";
print "-";
$forum = $rwz[forum_name];
$catid = $rwz[cat_id];
$qry2 = mysql_query("select * from phpbb_categories where cat_id='$catid'");
$rwz2 = mysql_fetch_array($qry2);
$cat = $rwz2[cat_title];
if (strlen($rows[topic_title])>1){
printf("<a href=\"viewtopic.php?t=%d\">%s %s</a> [%d]<br />", $rows[topic_id], $cat, ((strlen($rows[topic_title])>42)?substr($rows[topic_title],0,42)."...": $rows[topic_title]), $rows[topic_replies]);
echo "</td></tr></table>";
}
}
?>