You are here: Re: mysql_real_escape_string() « PHP Programming Language « IT news, forums, messages
Re: mysql_real_escape_string()

Posted by Jerry Stuckle on 08/05/07 20:05

zach wrote:
> Paul Lautman wrote:
>> zach wrote:
>>> The manual only said it needed an open connection, but didn't
>>> explain,(or not very clearly) why it needed it.
>> But Matt quoted from the manual the text:
>> "This is needed because the escaping depends on the character set in
>> use by the server."
>>
>> This is in the first paragraph of the section in the manual.
>
> I read the PHP manual and it said nothing about this, it only mentioned
> that in the mysql manual. I am writing a PHP script and so I looked in
> the PHP manual. Who would have thought that writing a script in PHP,
> people would expect you to look to other manuals for information.
>
> zach

Zach,

When dealing with other products, it's a good idea to be familiar with
their API's, also.

Many PHP functions are just wrappers for C functions, as
mysql_real_escape_string() is for the function of the same name. PHP
won't document MySQL requirements - it's not their job, the requirements
can be MySQL level dependent, and it's a waste of time and electrons to
duplicate what is already supplied.

Just like you won't find any documentation for the C function
mysql_real_escape_string() in the C language references. In fact, they
don't even mention the function.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация