Re: Special Characters

2008-11-24 Thread Mike Blezien
z" <[EMAIL PROTECTED]> To: "'Mike Blezien'" <[EMAIL PROTECTED]>; "'MySQL List'" Sent: Monday, November 24, 2008 9:21 AM Subject: RE: Special Characters -Original Message- From: Mike Blezien [mailto:[EMAIL PROTECTED] Sent

RE: Special Characters

2008-11-24 Thread Jerry Schwartz
>-Original Message- >From: Mike Blezien [mailto:[EMAIL PROTECTED] >Sent: Sunday, November 23, 2008 4:59 PM >To: MySQL List >Subject: Special Characters > >Hello, > >we are in the process of setting up a database with members data and >other info. >We'll need to enter names with special ch

Re: Special Characters

2005-02-11 Thread SGreen
Asad Habib <[EMAIL PROTECTED]> wrote on 02/11/2005 04:03:32 PM: > Does anyone know where I can find a list of characters that cannot be > inserted into a MySQL database as part of a string? I know that MySQL does > not accept single and double quotes and that these have to replaced by > their nam

RE: special characters not inserting into database - help

2004-09-28 Thread Ed Lazor
Try mysql_escape_string instead of addslashes. Also, I'm not sure why you did it, but you don't need to include your entire form in the PHP script and echo it. If you have PHP code before and after the form, you could use this approach: Form You could also try escaping the title all of the

Re: special characters as field values

2004-01-01 Thread Matt W
Hi Chris, You're fine with mysql_real_escape_string(). % or _ only need to be escaped if you're using them in LIKE and want them to match iterally. -- never needs to be escaped in a string. BTW, if you're using PHP and the stupid magic_quotes_gpc is on, you don't want to escape stuff yourself a

Re: Special Characters in INSERT Statement

2001-03-23 Thread Paul DuBois
At 5:30 PM -0500 3/23/01, Lee Jenkins wrote: >I apologize because I know I've seen this somewhere on the list before >(should have saved it). I'm trying to insert some data into CHAR fields >that have trailing Ascii 0 characters, but get a syntax error. > >The data would like this: > >23302220202

Re: special characters in MySQL query

2001-02-19 Thread Ed Carp
Rolf Hopkins ([EMAIL PROTECTED]) writes: > I think you mean addslashes() > > If you are using PHP there is the htmlspecialchars() function that will do > just that for you. > > > > > I have written a program which reads data from WWW forms and passes > > > > it to > > > > > MySQL queries. All w

Re: special characters in MySQL query

2001-02-19 Thread Rolf Hopkins
I think you mean addslashes() - Original Message - From: "Thalis A. Kalfigopoulos" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 20, 2001 2:37 Subject: Re: special characters in MySQL query > If you are using PHP there is the htmlspecialc

Re: special characters in MySQL query

2001-02-19 Thread Thalis A. Kalfigopoulos
If you are using PHP there is the htmlspecialchars() function that will do just that for you. cheers, thalis > > - Original Message - > > From: "Robert Heron" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Saturday, February 17, 2001 6:35 PM > > Subject: special characters in

Re: special characters in MySQL query

2001-02-18 Thread Rolf Hopkins
ay, February 18, 2001 0:18 Subject: Re: special characters in MySQL query > No, solve it in your own program. > > > - Original Message - > From: "Robert Heron" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, February 17, 2001 6:35 PM &g

Re: special characters in MySQL query

2001-02-17 Thread Artem Koutchine
No, solve it in your own program. - Original Message - From: "Robert Heron" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 17, 2001 6:35 PM Subject: special characters in MySQL query > I have written a program which reads data from WWW forms and passes it to > MyS

RE: special characters messing me up

2001-02-13 Thread John W Ford
d; Mysql > Subject: Re: special characters messing me up > > > At 23:04 12-02-2001 -0800, John W Ford wrote: > >I can't figure out why my windows machine leaves "^M" character > at the end > >of each line of code. This causes the file to be messed up when >

RE: special characters messing me up

2001-02-13 Thread The Tilghman
mv file file~ ; tr -d '\015' file ; rm file~ Or, in vim, :set fileformat=unix Or, use PFE32.EXE on Windows as your editor (allows saving as Unix text file). -Tilghman -- "There cannot be a crisis today. My schedule is already full." --Henry Kissinger > -Original Message- > From

RE: special characters messing me up

2001-02-13 Thread mike thomas
John Here is another solution to removing those '^M' chars. This is a lot simpler than my last idea :- sed 's/^M//g' YOUR_FILE > YOUR_NEW_FILE Michael Thomas www.abcXyz.com > - > Before posting, please check: >http://www.

RE: special characters messing me up

2001-02-13 Thread mike thomas
Try this, The code below will remove the last character from each record in your file. On your Linux system enter this line on the command line and the results will appear in the NEW_FILE. Obviously you can name the input and output files anything you want. awk '{print substr($0, 1, length-1)}'

Re: special characters messing me up

2001-02-13 Thread Thalis A. Kalfigopoulos
> > Or a handy one-liner... > > > > perl -pi -e "s/[\012\015]//" *.sql > > > > > > Or alternatively edit the file with vi and do: > :s/// > > This inteprets to the following keystrokes: > ':' colon > 's' s for substitute > ''Ctrl-v-m to create the annoying ^M as one character > '//'

Re: special characters messing me up

2001-02-13 Thread Peter Lewis
On Tue, 13 Feb 2001, Irmund Thum wrote: > Rolf Hopkins schrieb: > > > > "^M"??? The ^M is the carriage return/line feed usually found in ms/dos text files. On my Linux system (on downloaded files) I removed them by tr -d \r old file > new file. tr = text replace; -d delete; \r = ^M see 'info

Re: special characters messing me up

2001-02-13 Thread Thalis A. Kalfigopoulos
On Tue, 13 Feb 2001, Peter Skipworth wrote: > Or a handy one-liner... > > perl -pi -e "s/[\012\015]//" *.sql > > Or alternatively edit the file with vi and do: :s/ // This inteprets to the following keystrokes: ':' colon 's' s for substitute ' ' Ctrl-v-m to create the annoying ^M

Re: special characters messing me up

2001-02-13 Thread John Jensen
"M" is the thirteenth letter of the alphabet. ASCII 13 (^M) is the carriage return. If you are using binary transfer on ftp, then you will get these and any other control characters imbedded in your file. Set your ftp to ASCII and try again. Perl is particulary sensitive to this. HTML doesn't

Re: special characters messing me up

2001-02-13 Thread Peter Skipworth
; > Cc: "Mysql" <[EMAIL PROTECTED]> > Sent: Tuesday, February 13, 2001 7:31 AM > Subject: Re: special characters messing me up > > >> > > >> - Original Message - > > >> From: "John W Ford" <[EMAIL PROTECTED]> > &

Re: special characters messing me up

2001-02-13 Thread G. Adam Stanislav
At 23:04 12-02-2001 -0800, John W Ford wrote: >I can't figure out why my windows machine leaves "^M" character at the end >of each line of code. This causes the file to be messed up when I put it on >the Linux server. That's a carriage return. DOS/Windows ends a line with a carriage return follow

Re: special characters messing me up

2001-02-13 Thread Pat Sherrill
PROTECTED] - Original Message - From: <[EMAIL PROTECTED]> To: "Irmund Thum" <[EMAIL PROTECTED]> Cc: "Mysql" <[EMAIL PROTECTED]> Sent: Tuesday, February 13, 2001 7:31 AM Subject: Re: special characters messing me up > >> > >> -

Re: special characters messing me up

2001-02-13 Thread tlr7425
can you please stop sending attachments through the list? At 11:24 AM +0100 2/13/01, Irmund Thum wrote: >Rolf Hopkins schrieb: >> >> "^M"??? You sure it is that? Anyway, it is most likely to do with carriage >> returns. Windows uses CR and LF to indicate a new line, while Linux and >> Macs

Re: special characters messing me up

2001-02-13 Thread clay bond
On Tue, 13 Feb 2001, Irmund Thum wrote: > Rolf Hopkins schrieb: > > > > "^M"??? You sure it is that? Anyway, it is most likely to do with carriage > > returns. Windows uses CR and LF to indicate a new line, while Linux and > > Macs only use LF. Hopefully this will help. Don't know what yo

Re: special characters messing me up

2001-02-13 Thread Irmund Thum
Rolf Hopkins schrieb: > > "^M"??? You sure it is that? Anyway, it is most likely to do with carriage > returns. Windows uses CR and LF to indicate a new line, while Linux and > Macs only use LF. Hopefully this will help. Don't know what you can do > about it though. > > - Original Messa

Re: special characters messing me up

2001-02-12 Thread Rolf Hopkins
"^M"??? You sure it is that? Anyway, it is most likely to do with carriage returns. Windows uses CR and LF to indicate a new line, while Linux and Macs only use LF. Hopefully this will help. Don't know what you can do about it though. - Original Message - From: "John W Ford" <[EMAIL