Styling php

Hi Guys

quick question i have this bit of code i am using on wordpress

<?php
$how_many=3; //How many posts do you want to show
require_once("wp-config.php"); // Change this for your path to wp-config.php file ?>

<?
$news=$wpdb->get_results("SELECT `ID`,`post_title`,`post_content`, `post_date` FROM $wpdb->posts
WHERE `post_type`=\\"post\\" AND `post_status`= \\"publish\\" ORDER BY 'ID' DESC LIMIT ".$how_many);
foreach($news as $np){
//echo ("$np->post_date<br />");
list ($y, $m, $d) = split('[/.-]', substr($np->post_date, 0, 10));
 echo "Posted on: $d-$m-$y<br />";
print ("<a href=\\"");
echo get_permalink($np->ID);
print ("\\">$np->post_title</a><br />");
if (strlen($np->post_content) > 65)
{
echo (substr("$np->post_content", 0, 65)."... ");
}
else
{
echo ("$np->post_content<br />");
}
print ("<a href=\\"");
echo get_permalink($np->ID);
print ("\\">» Read More</a><br /><br />");
} ?> 

it does its job but i need to style the content

so for example i want to add a <h1> tag around the post_title

how should this be done?

thanks


print ("<h1><a href=\\"");
echo get_permalink($np->ID);
print ("\\">$np->post_title</a></h1>");

or a bit easier to read perhaps?


echo '<h1><a href="'. get_permalink($np->ID) .'">'. $np->post_title .'</a></h1>' ;

There are variations upon using echo, print, double-quotes, single-quotes.