[PHP] submitting free-form text to a database

2001-07-16 Thread garman
Hello. I'm creating a simple Classifieds PHP application. It allows users to view classifieds by category, and add new items to the database. For now, I'm using MS Access 97 as my database (although eventually I would like to switch to MySQL). Anyway, one element of a classified is the

RE: [PHP] submitting free-form text to a database

2001-07-16 Thread garman
= Original Message From Duncan Hill [EMAIL PROTECTED] = On Mon, 16 Jul 2001, garman wrote: box where the user enters a description of the item he is selling. If the user's input contains an apostrophe (aka a single quote ') or even a double quote, the code gets confused. addslashes()

RE: [PHP] submitting free-form text to a database

2001-07-16 Thread Rasmus Lerdorf
= Original Message From Duncan Hill [EMAIL PROTECTED] = On Mon, 16 Jul 2001, garman wrote: box where the user enters a description of the item he is selling. If the user's input contains an apostrophe (aka a single quote ') or even a double quote, the code gets confused.

Re: [PHP] submitting free-form text to a database

2001-07-16 Thread Francis Fillion
If I remember the best things with M$ oriented database, is to to double it so ' should be '' and it should be ok. Anyway, that's what I do when I have to do stuff with those software. garman wrote: = Original Message From Duncan Hill [EMAIL PROTECTED] = On Mon, 16 Jul 2001, garman

RE: [PHP] submitting free-form text to a database

2001-07-16 Thread scott [gts]
the database access code when you decide to switch to MySQL... so better to do it sooner than later and save yourself the work down the road. :-) -Original Message- From: garman [mailto:[EMAIL PROTECTED]] Subject: [PHP] submitting free-form text to a database Hello. I'm creating