Hello all,
For some reason I intend to display my PHP on a web browser. That is to say that I don't want my PHP code to get interpreted.
Take for example what do I need to do to display following sample php code as it is on a web browser:
<?php
include "dbconnect.php";
$query1="SELECT `srno` FROM `quotes` ORDER BY `srno` DESC LIMIT 1" ;
$min=1;
$maxdata=mysql_query($query1) or die(mysql_error());
$maxlimit=mysql_fetch_assoc($maxdata);
$max=$maxlimit['srno'];
$quoteno=rand($min, $max);
$query2 = "SELECT `quote`,`author` FROM `quotes` where `srno`=$quoteno";
$selectdata = mysql_query($query2);
while($col=mysql_fetch_row($selectdata))
{
echo "<p>$col[0]</p>";
echo "<p>- $col[1]</p>";
}
?>