Начи имам е тоя код в индекса
И използвам системата за новини на jooorooo
променил съм индекса така
Та въпроса ми е защо като има повече от една новина таблицата в индекса ми се изкривява ????
Код:
<table cellpadding="0" cellspacing="0" width="583">
<tr>
<td height="16" valign="top">
<img border="0" src="img/menu3.jpg" width="603" height="15"><? include "./news/config.php"; include "./news/index.php"; ?></td>
</tr>
</table>
променил съм индекса така
Код:
<?php include ("config.php"); ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $CHARSET ?>">
<title><?php echo $TITLE ?></title>
<LINK href="css/css.css" type=text/css rel=stylesheet>
</head>
<body>
<centre>
<table width="593" border="0" cellspacing="3" cellpadding="0">
<tr>
<td> </td>
<td align="center"></td>
</tr>
<tr>
<td colspan="2">
<table width="99%" border="0" cellpadding="0" cellspacing="0" height="12">
<tr>
<td height="12"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" width="4" height="42">
<br>
<br>
</td>
<td valign="top" width="580" height="42">
<?php
mysql_connect($server, $dbusername, $dbpassword)or die("Ñàéòúò íå ìîæå äà ñå ñâúðæå êúì áàçàòà äàííè");
@mysql_select_db($db_name) or die("Ãðåøíà áàçà äàííè");
$jor="SELECT * FROM news ORDER BY id_news DESC LIMIT 0,10";
$roj=mysql_query($jor);
$num=mysql_numrows($roj);
mysql_close();
$i=0;
while ($i < $num) {
$id_news=mysql_result($roj,$i,"id_news");
$title=mysql_result($roj,$i,"title");
$chas=mysql_result($roj,$i,"chas");
$minuti=mysql_result($roj,$i,"minuti");
$den=mysql_result($roj,$i,"den");
$mesec=mysql_result($roj,$i,"mesec");
$godina=mysql_result($roj,$i,"godina");
$cats=mysql_result($roj,$i,"cats");
$newstext=mysql_result($roj,$i,"newstext");
$start=strlen($str);
$text=substr($newstext,$start ,$broinews);
echo "<table width=100% border=0 cellpadding=0 cellspacing=0>
<tr>
<td height=19 bgcolor=#9B3024> <strong><a href=./news/fullnews.php?id_news=$id_news>$title</a></strong></td>
</tr>
<tr>
<td>
<table id=lineLRBs class=nav border=0 cellpadding=0 cellspacing=0 width=100%>
<tr>
<td height=25px id=lineBottom width=33%> Êàòåãîðèÿ: <strong><a href=./news/catview.php?cats=$cats>$cats</a></strong></td>
<td height=25px id=lineBottom width=33%> </td>
<td height=25px id=lineBottom width=34%> <strong>$chas:$minuti - $den/$mesec/$godina</strong></td>
</tr>
<tr>
<td id=lineBottom width=100% colspan=3><div><table cellpadding=5 width=100%>
<tr>
<td width=100%><p align=justify>$text...</p></td>
</tr>
</table></div></td>
</tr>
<tr>
<td height=25px width=33%> <strong><a href=./news/addcomment.php?id_news=$id_news>Êîìåíòàðè</a></strong></td>
<td height=25px width=33%> </td>
<td height=25px width=34%> <a href=./news/fullnews.php?id_news=$id_news><strong>Gamer-BG™</strong></a></td>
</tr>
</table>";
echo "<br>";
$i++;
}
?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</table>
</centre>
</body>
</html>