Re: Problem displaying a mysql database field
| From: | Jochem Maas | Date: | Fri, 23 Jun 2006 20:22:58 +0000 |
| Subject: | Re: Problem displaying a mysql database field | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-238563@lists.php.net to get a copy of this message | ||
Don wrote:
> 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_decode() but it
> still shows as blank.
>
> How can I display this please???
post some code and maybe someone can help.
also use var_dump() et al to dump the contents of the vars/vals you
retrieve from the DB - that might give you a clue.
and lastly have you tried do 'view source' in order to try and understand
what might be going on?
>
> Tks,
> Don
>