php include includes header php table border cellspacing cellpadding w

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
include "../includes/header.php";
?>
<table border="0" cellspacing='5' cellpadding='0' width="100%">
<?php
if ( isset ( $_GET['id'] ) ) {
$sel = mysql_query("SELECT news_id, news_date, news_topic, news_full FROM articles WHERE onoff = '1' AND news_id = '".$_GET['id']."'");
$qur = mysql_fetch_object($sel);
echo "<tr><td><span class='header_large'>".$qur->news_topic."</span></td></tr>"; // <br>".date("d.m.Y", $qur->news_date)."
echo "<tr><td>".$qur->news_full."</td></tr>";
} else {
echo "<tr><td><span class='header_large'>яРЮРЭХ</span></td></tr>";
$sel = mysql_query("SELECT news_id, news_date, news_topic, news_short FROM articles WHERE onoff = '1' ORDER BY news_date DESC");
while ($qur = mysql_fetch_object($sel)) {
echo "<tr>";
echo "<td class='news_2'>";
echo "<table aling='left' width='100%' border='0' cellspacing='5' cellpadding='0'><tr>";
echo "<td colspan='2' valign='top' width='2%'><a href='/articles/".$qur->news_id."/' title='".$qur->news_topic."' class='maintext'>".$qur->news_topic."</a><br>".$qur->news_short."</td>"; // ".date("d.m.Y", $qur->news_date)."<br>
echo "</tr></table>";
echo "</td></tr>";
}
}
?>
</table>
<?php
include "../includes/bottom.php";
?>