using HTML with PHP

Permabanned
Joined
22 Apr 2007
Posts
1,805
Hi,

In this piece of code how do I use <h3> tags around the echo($obj->p_title .

Code:
//List of news - but truncated to 50 chars.
	$qry = mysql_query("SELECT * FROM news ORDER BY id DESC");
	while ($obj = mysql_fetch_object($qry))
	{
		echo($obj->p_title . " " . $obj->p_summary . " <a href=\"news.php?id=$obj->id\">(full story here)</a><br />");

Basically, I want p_title to adopt my CSS formatting for an <h3> component
 
Back
Top Bottom