Re: [PHP] mysql_escape_string breaks EOL?

2004-10-26 Thread Marek Kilimajer
David Robley wrote: It seems that mysql_escape_string and mysql_real_escape_string do undesirable things to EOL markers - data from textareas escaped with either of those functions is entered, and retrieved with, the characters /r/n instead of a true line break. This snippet of code demonstrates th

[PHP] mysql_escape_string breaks EOL?

2004-10-26 Thread David Robley
It seems that mysql_escape_string and mysql_real_escape_string do undesirable things to EOL markers - data from textareas escaped with either of those functions is entered, and retrieved with, the characters /r/n instead of a true line break. This snippet of code demonstrates the problem: \n"; $w

Re: [PHP] mysql_escape_string vs. mysqli_escape_string....

2004-07-01 Thread Justin Patrin
I'm using Firefox. If I use "mysql_escape_string()" I get a listing of functions which does include mysql_escape_string and mysqli_escape_string. It doesn't go straight to mysqli_escape_string, though. If you search without parenthesis, it works as expected. You don't need (aren't supposed to use)

Re: [PHP] mysql_escape_string vs. mysqli_escape_string....

2004-07-01 Thread Scott Fletcher
try "mysql_escape_string()". and I'm using Mozilla... "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thu, 1 Jul 2004 09:37:46 -0400, Scott Fletcher <[EMAIL PROTECTED]> wrote: > > > > What the hell??? When I enter the "mysql_escape_string" in the "search for"

Re: [PHP] mysql_escape_string vs. mysqli_escape_string....

2004-07-01 Thread Justin Patrin
On Thu, 1 Jul 2004 09:37:46 -0400, Scott Fletcher <[EMAIL PROTECTED]> wrote: > > What the hell??? When I enter the "mysql_escape_string" in the "search for" > textbox at www.php.net, I get a mysqli_escape_string result. So, the > question here is, is the website mistaken or is someone made a typ

Re: [PHP] mysql_escape_string() vs addslashes()...

2004-07-01 Thread Scott Fletcher
In that case, I'll have to stick to addslashes() instead of mysql_real_escape_string() because I'm escaping some of the PHP's post string in the MySQL's syntax and not yet using the mysql's connection until some decision making script play a role in it. Blah!! Thanks, Scott F. "Curt Zirzow" <[E

Re: [PHP] mysql_escape_string() vs addslashes()...

2004-07-01 Thread Curt Zirzow
* Thus wrote Scott Fletcher: > > > I would argue that something like mysql_escape_string() is better than > > > addslashes(), so I agree with you for the most part anyway. :-) It all > > > depends on what database is being used and how. > > Starting a new topic since the related-topic lists got to

[PHP] mysql_escape_string vs. mysqli_escape_string....

2004-07-01 Thread Scott Fletcher
What the hell??? When I enter the "mysql_escape_string" in the "search for" textbox at www.php.net, I get a mysqli_escape_string result. So, the question here is, is the website mistaken or is someone made a typo when posting to this php newsgroup??? Scott F. -- PHP General Mailing List (http:

[PHP] mysql_escape_string() vs addslashes()...

2004-07-01 Thread Scott Fletcher
> > I would argue that something like mysql_escape_string() is better than > > addslashes(), so I agree with you for the most part anyway. :-) It all > > depends on what database is being used and how. Starting a new topic since the related-topic lists got too long. So, run that again about what

RE: [PHP] mysql_escape_string is deprecated?

2002-12-27 Thread John W. Holmes
> I was looking at the PHP 4.3 changelog, and it said that > mysql_escape_string is deprecated. Is this true, and if so, what should > I be using instead? Probably addslashes() or magic_quotes_gpc... ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy to

[PHP] mysql_escape_string is deprecated?

2002-12-27 Thread Leif K-Brooks
I was looking at the PHP 4.3 changelog, and it said that mysql_escape_string is deprecated. Is this true, and if so, what should I be using instead? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the

RE: [PHP] mysql_escape_string

2001-12-26 Thread Richard Heyes
> How do I remove the slashes from mysql_escape_string when I pull the > string back out of the DB and want to display it? You don't need to. The escaping is only to ensure the query doesn't break. When it's in the db and when it's returned, it will not have the slashes. -- Richard Heyes "If you

Re: [PHP] mysql_escape_string

2001-12-26 Thread Jim Lucas [php]
where is the escaping happening first off? - Original Message - From: "phantom" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 26, 2001 2:02 PM Subject: [PHP] mysql_escape_string > How do I remove the slashes from mysql_esca

[PHP] mysql_escape_string

2001-12-26 Thread phantom
How do I remove the slashes from mysql_escape_string when I pull the string back out of the DB and want to display it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrato