I am using following code to retrieve data from database and print it on the screen. <?php include("mysql_connect.php"); mysql_select_db("my_db", $con_mysql_db); $result = mysql_query("SELECT post_title, post_body From posts"); while($row = mysql_fetch_array($result)) { echo $row[0]; // displays post title print("<br/>"); print($row[1]); // displays post body } ?> The above code is working fine. However I have a problem when I try to wrap the $row[0] string in <h1></h1> tags. The whole page gets blank. Please tell me how can I use <h1> tags so that I can display the string text as a heading.