I am having a problem with my php code as it shows half code from loop in the browser after the comparison statement.
<?
include_once("connection.php");
connect_mysql();
$qry="select * from page_content where pg_id='1'";
$res=mysql_query($qry);
if(mysql_num_rows($res)>0)
{
$r=mysql_fetch_array($res);
$txt = $r["pg_text"];
}
?>
it shows like this on browser. Error on Browser