<?php
mysql_connect("localhost","root","");
mysql_select_db("noyztvs");
$query = mysql_query("SELECT * FROM naujienos");
while(mysql_fetch_array($query))
{
echo "<h2 class='title'>";
echo $row['pavadinimas'];
echo "<div class='entry'>
<p>";
echo $row['naujiena'];
echo "</p>
</div>";
}
?>