Re: Escaping Characters help needed
| From: | Micah Stevens | Date: | Fri, 23 Sep 2005 21:40:52 +0000 |
| Subject: | Re: Escaping Characters help needed | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-40349@lists.php.net to get a copy of this message | ||
Just out of curiosity, your method looks like it should work, what's the mysql
error message?
-Micah
On Friday 23 September 2005 2:28 pm, Chris Payne wrote:
> Hi there everyone,
>
> Can any of you see why the below will not insert into my database?
>
> Hann Heritage Homes' Fall Circuit entry. Fabulous ranch floorplan w/walkout
> basement. Stunning great room w/FP, dramatic dining room, den, screened
> porch. Mullett kitchen with glazed birch cabinets and granite. Luxury
> master BR and bath. The finest materials and workmanship throughout.
> Interiors by Pine Tree Barn. Compare and you'll choose to build with Hann
> Heritage Homes!
>
>
>
> I'm using PHP with MySQL and I store the data in $marketremarks but when it
> gets to THIS FIELD with this particular data in it, it just won't insert.
> I use the below to escape the characters, but I'm missing something or
> doing something wrong?
>
> addslashes(trim($marketremarks));
>
> Any help would REALLY be appreciated.
>
> Thanks everyone,
>
> Chris
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.11.2/105 - Release Date: 9/19/2005