oto kod
a oto błąd
Słyszałem też że ten sposób jet dość słaby więc jak ktoś zna lepszy to bym prosił

a oto błąd
$html = file_get_html('http://www.google.com/'); $result = $html->find('div[class=items]');
<?php $results_new_news = mysql_query("SELECT id, title, text, author, date, public, img, comments FROM news WHERE public=1 ORDER BY id ASC LIMIT 3"); $result = $html->find('span[class=when]'); $text = $new_news['text']; echo "<div style='margin-top: 2px; margin-left: 3.1px; width: 516px; height: 125px; background-image: url(img/23.png);'> <div style='float: left; padding-left: 7px; padding-top: 2px;'><img src='img/".$new_news['img']."'></div> <div style='float: left;'> <div style='width: 300px; padding-left: 5px;padding-top: 3px;'> <div><font style='font-family: Arial; font-size: 11px; color: #de6a21;'>".$result."<b>".$new_news['title']."</b></font><font style='color: #b1b1b1; font-family: Arial; font-size: 10px; margin-right: 4px; float: right;'><b>komentarzy (".$new_news['comments'].")</b></font></div> <div style='height: 73px;margin-top: 11px; margin-right: 3px;'><font style='font-family: Arial; font-size: 11px; color: #ffffff;'>".$wstep."...</font></div> <div><font style='font-family: Arial; font-size: 10px; color: #ffffff;'><b>dodał:</b></font> <font style='font-family: Arial; font-size: 10px;'><a href='#?profile=".$new_news['author']."' style='color: #de6a21;'><b>".$new_news['author']."</b></a></font> <font style='margin-left: 25px;font-family: Arial; font-size: 10px; color: #ffffff;'><b>dnia: ".$new_news['date']."</b></font> <font style='margin-left: 65px;font-family: Arial; font-size: 10px; '><a href='#?news=".$new_news['id']."' style='color: #ffffff;'><b>Więcej...</b></a></font></div> </div> </div> </div> <div style='margin-left: 5px; margin-top: 7px; margin-bottom: 7px;'><img src='img/24.png'></div>"; } ?>