|
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]
|