Къде бъркам в кода?!

MontefuckeR

Registered
значи това е сайта искам целия документ да мине горе в ляво(или фона който е бял да стане черен) http://monmon8.freehostia.com/news.php
ето и пхп-кода..

<?php
$xmlfile = fopen("http://www.kaldata.com/rosebud/rss.php?catid=1", "r");
if(!$xmlfile)die("cannot open the xml file");
$readfile = fread($xmlfile ,40000);
$searchfile = eregi("<item>(.*)</item>", $readfile ,$arrayreg);
$filechunks = explode("<item>", $arrayreg[0]);
$count = count($filechunks);
echo "<table border='1' style=\" color:#fff;background:black\" align=left>";
echo "<th colspan='3'>Ñîôòóåðíè íîâèíè!</th>";
for($i=1 ; $i<=$count-1 ;$i++)
{
ereg("<title>(.*)</title>",$filechunks[$i], $title);
ereg("<link>(.*)</link>",$filechunks[$i], $links);
ereg("<description>(.*)</description",$filechunks[$i],$desc);
echo "<tr><td>";
echo $title[1];
echo "</td><td>";
echo "<a href ='$links[1]' target='_blank'>$links[1]</a>";
echo "</td><td>";
echo $desc[1];
echo "</td></tr>";
}
echo "</table>";
?>
 
Код:
<html >
 <head>
 <title>test</title>
 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1251">
 <style rel="stylesheet" type="text/css">
 body { 
	background: #ffffff;
	margin: 0px; 
	padding:0px; 
}
 </style>
</head>
<body>
<?php
$xmlfile = fopen("http://www.kaldata.com/rosebud/rss.php?catid=1", "r");
if(!$xmlfile)die("cannot open the xml file");
$readfile = fread($xmlfile ,40000);
$searchfile = eregi("<item>(.*)</item>", $readfile ,$arrayreg);
$filechunks = explode("<item>", $arrayreg[0]);
$count = count($filechunks);
echo "<table border='1' style=\" color:#fff;background:black\" align=left>";
echo "<th colspan='3'>Nioooa?ie iiaeie!</th>";
for($i=1 ; $i<=$count-1 ;$i++)
{
ereg("<title>(.*)</title>",$filechunks[$i], $title);
ereg("<link>(.*)</link>",$filechunks[$i], $links);
ereg("<description>(.*)</description",$filechunks[$i],$desc);
echo "<tr><td>";
echo $title[1];
echo "</td><td>";
echo "<a href ='$links[1]' target='_blank'>$links[1]</a>";
echo "</td><td>";
echo $desc[1];
echo "</td></tr>";
}
echo "</table>";
?>
</body>
</html>
 

Back
Горе