Hi,
I have a varchar field in a MySQL database that contains a line of text
like so:
"This is a line if text"
The double quotes are included in the database field.
I cannot seem to display it on my HTML page, it always shows as blank.
I have tried using both the stripslashes() and the html_entity_dec ode()
but it still shows as blank.
An code example I am trying is as follows:
<?php
echo
stripslashes(ht ml_entity_decod e($my_variable_ from_a_mysql_da tabase));
?>
How can I display this please???
Tks,
Don
I have a varchar field in a MySQL database that contains a line of text
like so:
"This is a line if text"
The double quotes are included in the database field.
I cannot seem to display it on my HTML page, it always shows as blank.
I have tried using both the stripslashes() and the html_entity_dec ode()
but it still shows as blank.
An code example I am trying is as follows:
<?php
echo
stripslashes(ht ml_entity_decod e($my_variable_ from_a_mysql_da tabase));
?>
How can I display this please???
Tks,
Don
Comment