Re: Having / not posted to MySQL Database
| From: | Adam Voigt | Date: | Thu, 09 Jan 2003 14:51:40 +0000 |
| Subject: | Re: Having / not posted to MySQL Database | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-130955@lists.php.net to get a copy of this message | ||
Turn off magic quotes in the php.ini to not have them go in, and you
will most
likely get a bunch of error's, or pass what you select from the database
through
the stripslashes function like:
$query = mysql_query("SELECT field FROM table;");
$array = mysql_fetch_array($query);
$array[field] = stripslashes($array[field]);
On Thu, 2003-01-09 at 09:41, Vernon wrote:
When posting to a MySQL database field database record slashes are
being
added to the data where there is an apostrophe. How do I either, not
have
the apostrophe posted without the slash or have it not displayed
when it is
being retrieved?
Thanks
V
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Adam Voigt (adam@cryptocomm.com)
The Cryptocomm Group
My GPG Key: http://64.238.252.49:8080/adam_at_cryptocomm.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc