unction display_database($value)
> {
>$value = htmlentities($value,ENT_COMPAT);
>if (!get_magic_quotes_gpc()) {
>$value = stripslashes($value);
> }
> return $value;
> }
>
> -Original Message-
> From: Stut [mailto:[EMAIL PROTECTED]
> Sent: Friday
On Fri, June 30, 2006 1:39 pm, Don wrote:
> 905.362.6000"l""s"'L'
>
So you end up with this:
value="905.362.6000"1""s"'L'"
^
And, in HTML, this | marks the end of the string.
You know how you do mysql_real_escape_string to put data in a database?
In the same way, you need
tabase($value)
{
$value = htmlentities($value,ENT_COMPAT);
if (!get_magic_quotes_gpc()) {
$value = stripslashes($value);
}
return $value;
}
-Original Message-
From: Stut [mailto:[EMAIL PROTECTED]
Sent: Friday, June 30, 2006 3:49 PM
To: Don
Cc: php list
Subject: Re: [PHP] Displayi
Don wrote:
Hi Have have a varchar field in a MySQL database which contains the
following
905.362.6000"l""s"'L'
I am trying to display it on my web page in a field but all I
see is:
905.362.6000
Because it has quotes in it. I bet if you look at the source of the
page, the full value is
Don wrote:
Hi Have have a varchar field in a MySQL database which contains the
following
905.362.6000"l""s"'L'
I am trying to display it on my web page in a field but all I
see is:
905.362.6000
I am wondering why the trailing characters do not display even though they
are present in th
5 matches
Mail list logo