<?php
include( "blocks/dbopen.php" );
echo"
<table><tr><td valign='top'>";
$result = mysql_query("SELECT * FROM news ORDER BY dt DESC LIMIT 3",$link);
while($myrow = mysql_fetch_assoc($result))
echo"
<table>
<tr valign='top'>
<td colspan=2> Заголовок </td>
</tr>
<tr valign='top'>
<td width='130px'><a href='#'><img src='/news/img/".$myrow["pre_img"]."' ></a> </td>
<td width='200px'>".$myrow["description"]."</a> </td>
</tr>
</table>
"
;
echo"</td><td valign='top'>";
$result = mysql_query("SELECT * FROM news ORDER BY dt DESC LIMIT 3,3",$link);
while($myrow = mysql_fetch_assoc($result))
echo"
<table>
<tr valign='top'>
<td colspan=2> Заголовок </td>
</tr>
<tr valign='top'>
<td width='130px'><a href='#'><img src='/news/img/".$myrow["pre_img"]."' ></a> </td>
<td width='200px'>".$myrow["description"]."</a> </td>
</tr>
</table>
"
;
echo"
</td></tr></table>";
?>