Jump to content
php.lv forumi

Problema ar tabulu


djmartins

Recommended Posts

Man problema tada ka izvada no db informaciju nevienada limeni.Pirmo vins izvada centra to ko vajag Virsraksts teksts un bilde bet otro id vins jau izvada lapas labaja puse kaut gan it ka ir viena tabula tas viss.Ko darit?

 

<DIV id=layout_center_east>

 <DIV id=layout_center>


<div align="center">	</div>
<?
include("config.php");
$result = mysql_query("SELECT * FROM news;", $connect);
while ($res = mysql_fetch_array($result)) {
?>


<DIV class=caption style4><? echo $res[1]; ?></DIV>

<DIV class=infoslip><B>Datums kad:</B><? echo $res[2]; ?></DIV>
<DIV class=layout_splitter></DIV>
<DIV class=text>
 <table width="533" border="0">
 <tr>
<td width="418" valign="top"><? echo $res[3]; ?><br></td>
<td width="76" valign="top"><? echo $res[4]; ?></td>
 </tr>
</table>

</DIV>
</DIV>
</DIV>
</DIV>
<?
}
?>

Link to comment
Share on other sites

×
×
  • Create New...