RE: apostrophe char problem

2006-03-02 Thread George Law
Halid, I think this is a php/phpmyadmin problem and not really a mysql problem. PHP has an option called "magic quotes" that may be causing this. http://us2.php.net/manual/en/function.get-magic-quotes-gpc.php I have run into this before - I think what happens is that magic quotes will change

Re: apostrophe char problem

2006-03-02 Thread sprock
Something is double escaping the strings. Check if GPC magic string is enabled (apache's auto escaping). Also check if your code manually escapes the strings. Halid Faith wrote: Hello I use mysql 4.1.16 and php4.3.10 and phpmyadmin2.7 and apache-2.0.53 on FreeBSD5.3 I add any text as data wit

Re: apostrophe error

2004-01-09 Thread Michael Stassen
I don't use ASP and VBScript with Macromedia Dreamweaver, but I think the problem here is that you've misunderstood what is needed, rather than that Dreamweaver's escaping mechanism doesn't work. Let me try to explain. Mysql has no trouble with apostrophes in the data. The problem comes when

Re: apostrophe error

2004-01-09 Thread Matthew Stuart
Man I have been banging away at this for a week and I am only just getting to a point where I am finding a resolution. There seems to be a lot of info out there for this kind of thing, but very little on how to implement it. I use ASP and VBScript with Macromedia Dreamweaver so with asp I can

Re: apostrophe error

2004-01-09 Thread Aftab Jahan Subedar
Try using QUOTE function. Asif Iqbal wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi All I have been using mysql database to collect my syslog data. It was working fine. However recently I had few logs that had apotrophe and I failed to insert those lines into my database. It said syntax e

Re: link in your book (was Re: apostrophe error)

2004-01-07 Thread Paul DuBois
At 22:30 -0500 1/7/04, Asif Iqbal wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul DuBois wrote: At 21:35 -0500 1/7/04, Asif Iqbal wrote: >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA1 > >Paul DuBois wrote: >> At 20:39 -0500 1/7/04, Asif Iqbal wrote: >> >-BEGIN PGP SIGNED MESSA

Re: link in your book (was Re: apostrophe error)

2004-01-07 Thread Asif Iqbal
msg.pgp Description: PGP message

Re: apostrophe error

2004-01-07 Thread Paul DuBois
At 21:35 -0500 1/7/04, Asif Iqbal wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul DuBois wrote: At 20:39 -0500 1/7/04, Asif Iqbal wrote: >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA1 > >Hi All > >I have been using mysql database to collect my syslog data. It was >working fine. H

Re: apostrophe error

2004-01-07 Thread Asif Iqbal
msg.pgp Description: PGP message

Re: apostrophe error

2004-01-07 Thread Paul DuBois
At 20:39 -0500 1/7/04, Asif Iqbal wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi All I have been using mysql database to collect my syslog data. It was working fine. However recently I had few logs that had apotrophe and I failed to insert those lines into my database. It said syntax erro

Re: apostrophe and comma error on submit

2003-02-10 Thread pazenko
Message - From: "Bryant Hester" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 6:48 AM Subject: RE: apostrophe and comma error on submit You need to delimit them: INSERT INTO table VALUES ('value&#

RE: apostrophe and comma error on submit

2003-02-08 Thread Bryant Hester
You need to delimit them: INSERT INTO table VALUES ('value','Don\'t know',''); If you're inserting via PHP, you need to add a backslash before apostrophes or commas in the post data, as apostrophes and commas are used by MySQL to delimit fields on INSERT statements. It's also in the manual,

RE: apostrophe and comma error on submit

2003-02-07 Thread Victor Pendleton
escape your data with a black slash \' if you mean to have a literal single quotation mark. -Original Message- From: ahimsa [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 05, 2003 11:43 AM To: [EMAIL PROTECTED] Subject: apostrophe and comma error on submit Does anyone know about an

Re: Apostrophe In SELECT

2001-10-24 Thread Patrik Wallstrom
On Wed, 24 Oct 2001, John Abel wrote: > Hi, > > I am having bother trying to perform a select, that has an apostrophe in > the value I’m looking for. Below is the Perl code I’m using. > > $SQLStatement = "SELECT ID FROM Albums WHERE Name = > '".$DBHandle->quote($Name)."';"; > $STLook

Re: apostrophe ....

2001-03-14 Thread René Tegel
t;René Tegel" <[EMAIL PROTECTED]>; "Eric Fitzgerald" <[EMAIL PROTECTED]>; "Randy Johnson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, March 15, 2001 12:40 AM Subject: Re: apostrophe > > - Original Message - > From: &qu

Re: apostrophe ....

2001-03-14 Thread Rolf Hopkins
- Original Message - From: "René Tegel" <[EMAIL PROTECTED]> To: "Rolf Hopkins" <[EMAIL PROTECTED]>; "Eric Fitzgerald" <[EMAIL PROTECTED]>; "Randy Johnson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday,

Re: apostrophe ....

2001-03-14 Thread René Tegel
<[EMAIL PROTECTED]>; "Eric Fitzgerald" <[EMAIL PROTECTED]>; "Randy Johnson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, March 14, 2001 1:27 AM Subject: Re: apostrophe > Or you can fix your php by turning off the magic_quotes_gpc flag. Yo

Re: apostrophe ....

2001-03-13 Thread Rolf Hopkins
ssage - From: "René Tegel" <[EMAIL PROTECTED]> To: "Eric Fitzgerald" <[EMAIL PROTECTED]>; "Randy Johnson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, March 14, 2001 2:56 Subject: Re: apostrophe > this was true on php 4.

Re: apostrophe ....

2001-03-13 Thread René Tegel
y php seems to have loads of undocumented - and worse, changing, behaviour. regards, rene - Original Message - From: "Eric Fitzgerald" <[EMAIL PROTECTED]> To: "Randy Johnson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, March 13, 2001 7

Re: apostrophe ....

2001-03-13 Thread Eric Fitzgerald
Two things here. First off, we had this problem spring up on us, and I think I may know why it's doing it to you. If your using PHP, the more recent version automatically escape out variables sent to the mysql driver. Thus randy's is converted to randy's. HOWEVER, if you still have old code wh

Re: apostrophe ....

2001-03-13 Thread Steve Ruby
Randy Johnson wrote: > > When a text with an apostrophe in it has a \' in it. How can I fix this? > > example > > randy's is stored in the DB as randy\'s > > thanks > > Randy If you just want to fix that one instance just do update set = 'randy\'s' where -