Preserved Topic: mySQL... huh? |
|
---|---|
Author | Thread |
Maniac (V) Inmate From: Brisbane, Australia |
posted 07-10-2001 21:00
I came accross an odd problem recently: code: $string = ereg_replace ("\'", "\\'", $string);
|
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 07-10-2001 21:15
AddSlashes() is your friend... |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 07-10-2001 21:24
I had a similar problem with slashes getting added automatically on Windows. For that I needed to add stripslashes in the code to keep slashes from getting added everytime I updated something. |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 07-10-2001 21:57
mysql_escape_string() is also your friend. |
Maniac (V) Inmate From: Brisbane, Australia |
posted 07-10-2001 23:56
Ok. Everything worked fine in Windows without touching anything. I wrote and tested the script on windows. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 07-11-2001 00:04 |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 07-11-2001 01:04 |
Maniac (V) Inmate From: Brisbane, Australia |
posted 07-11-2001 06:08
mr.maX: Shit hay, that many inbuilt functions... Oh, and I just used the standard FoxServe install, didn't touch nothing cause I didn't want to break nothin (If it ain't broke don't fix it). I don't have any experience running server software of any kind on any system either so.... But I'll devote some time to reading up on the PHP config section of the manual. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 07-11-2001 08:08
No worries |