Файл: WORLDofTANKS/test/pages/news.php
Строк: 18
<div class="main_news_top"></div>
<div class="main_news_center">
<div class="main_news_title">Новости</div>
<table align="center" border="1" style="width:650px;">
<tr>
<td>Дата</td>
<td>Тема</td>
<td>Новость</td>
</tr>
<?
$con = mysql_query("SELECT * FROM news");
while($c = mysql_fetch_array($con)) {
$date = date("d-M-y", $c['date']);
?>
<tr>
<input type="hidden" name="id" value="<?=$c['id']; ?>">
<td><?=$date; ?></td>
<td><?=$c['title']; ?></td>
<td><?=$c['text']; ?></td>
</tr>
</form>
<? } ?>
</table>
</div>
<div class="main_news_bottom"></div>
<br>