nm figured it out.. thx 🙂
here is the function i am using:
function htmlencode($string){
$ret_string="";
$len=strlen($string);
for($x=0;$x<$len;$x++){
$ord=ord(substr($string, $x, 1));
$ret_string .= "&#$ord;";
}
return $ret_string;
}
Crazytoon wrote:
I have the following i want to display as it is on a page:
<td><?
$host = 'your_host_name';
$user = 'your_user_name';
$pass = 'your_password';
$db = 'your_db_name';
?>
</td>
but everytime i load the page, the content after <td>< doesn't show even though i can see it in source code.
My brain is dead and i am tired and can't think of a reason why it doesn't show up in the page even though it shows up in view source. Help!