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.
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<?
include 'conn.php';
$connect=mysql_pconnect("$dbserver","$dbuser","$dbpass") or die ( 'Не мога да осъществя връзка с базата данни' );
mysql_select_db("$dbname") or die ( 'Не мога да се свържа с базата данни' );
$query = mysql_query("SELECT name, text FROM chat ORDER BY posted DESC LIMIT 0,10");
while (list ($name, $text)=mysql_fetch_array ($query))
{
echo "<b><font color=red>$name</font></b>: $text<br/>";
}
?>
:?: Това ограничаване става заради LIMIT 0,10 в заявката!php_css каза:Код:<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> <? include 'conn.php'; $connect=mysql_pconnect("$dbserver","$dbuser","$dbpass") or die ( 'Не мога да осъществя връзка с базата данни' ); mysql_select_db("$dbname") or die ( 'Не мога да се свържа с базата данни' ); $query = mysql_query("SELECT name, text FROM chat ORDER BY posted DESC LIMIT 0,10"); while (list ($name, $text)=mysql_fetch_array ($query)) { echo "<b><font color=red>$name</font></b>: $text<br/>"; } ?>