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.
<DIV CLASS="osnoven">
<?
$i=0;
while ($row = mysql_fetch_array($result))
{
$i++;
$text=$row["text"];
...
...
if(($i % 2)!=0){
echo "<DIV CLASS=\"liniq\">";
}
echo "<DIV CLASS=\"novina\">$text</DIV>";
if(($i % 2)==0){
echo "</DIV>";
}
}
if(($i % 2)!=0)
{
echo "</DIV>";
}
?>
</DIV>
echo "<H3>Снимки</H3><br>";
$sql_one = mysql_query("SELECT * FROM ******* order by id DESC")
or die(mysql_error());
echo "<table height=\"100%\" border=\"0\" width=\"400\" cellspacing=\"5\" cellpadding=\"0\">
<tr>";
$i=0;
while($res2 = mysql_fetch_array($sql_one)){
?><center>
<? if ($i==4 || $i==8 || $i==12 || $i==16 || $i==20 || $i==24){
echo "<tr>";
}?>
<td width="90"><? echo "<a href=\"?st=gallery&pages=$res2[id]\";>";?>
<img src="img/gallery.gif" alt="" width="58" border="0"><br
style="padding-bottom:5px;"><font color=\"#006699\">
<? echo "$res2[title]"; ?></font></a></font>
</td>
<? if ($i==3){
echo "</tr>";
}?>
<? $i = $i + 1;
}?>
echo "</tr>
</table></center>";
}
<?php
include("news/config.php");
$result = mysql_query("SELECT * FROM news ORDER BY newsid DESC LIMIT 5",$connect);
while($myrow = mysql_fetch_array($result))
{
echo '
<div class="news">
<strong>' . $myrow['title'] . '</strong>
<span>Дата: ' . $myrow['dtime'] . '</span>
<a href="news/read_more.php?newsid='.$myrow[newsid].'">Прочети</a>
</div>';
}
?>
<?php
include("news/config.php");
$result = mysql_query("SELECT * FROM news ORDER BY newsid DESC LIMIT 5",$connect);
while($myrow = mysql_fetch_array($result))
{
echo '
<div class="news" style="float: left;">
<strong>' . $myrow['title'] . '</strong>
<span>Дата: ' . $myrow['dtime'] . '</span>
<a href="news/read_more.php?newsid='.$myrow[newsid].'">Прочети</a>
</div>';
}
?>
clear: both;
Еми аз съм го далBlack каза:Трябва ми пи еч пи файла кадето се показват новините![]()
Мерси за урока.renegat96 каза:виж този урок
http://web-tourist.net/login/login/view.php?st=1593
<html>
<head>
<style type="text/css">
</style>
</head>
<body>
<div id="asd">
<?php
include("news/config.php");
$result = mysql_query("SELECT * FROM news ORDER BY newsid DESC LIMIT 5",$connect);
while($myrow = mysql_fetch_array($result))
{
echo '
<div id='qwe'>
<strong>' . $myrow['title'] . '</strong>
<span>Дата: ' . $myrow['dtime'] . '</span>
<a href="news/read_more.php?newsid='.$myrow[newsid].'">Прочети</a>
</div>';
echo '
<div id='zxc'>
<strong>' . $myrow['title'] . '</strong>
<span>Дата: ' . $myrow['dtime'] . '</span>
<a href="news/read_more.php?newsid='.$myrow[newsid].'">Прочети</a>
</div>';
}
?>
</div>
</body>
</html>