RE: [PHP] Displaying data from a MySLQ table

2006-06-30 Thread Richard Lynch
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

Re: [PHP] Displaying data from a MySLQ table

2006-06-30 Thread Richard Lynch
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

RE: [PHP] Displaying data from a MySLQ table

2006-06-30 Thread Don
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

Re: [PHP] Displaying data from a MySLQ table

2006-06-30 Thread John Nichel
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

Re: [PHP] Displaying data from a MySLQ table

2006-06-30 Thread Stut
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

[PHP] Displaying data from a MySLQ table

2006-06-30 Thread Don
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 the database when