Sinisa,
1.
Thanks for the mail.
2.
I observed that mysql_escape_string()soes not work
either.If I want to store a file name with back
slashes,I feel mysql_escape_string() should introduce
the additional backslash required .But it does not do
so.It is just copying from source string to
destination string.
3.
Because of this I am unable to store the escape string
into the database.By the way can you send me the exact
syntax for mysql_escape_string() so that I can check
it up to further confirm that I am not missing out on
any thing.
4.
mysql_escape_string() does not complain but I feel it
is not doing what it is supposed to do.
Regards,
Ravi
--- Sinisa Milivojevic <[EMAIL PROTECTED]> wrote: > VVM
Ravikumar Sarma Chengalvala writes:
> > Hi,
> > 1.
> > I am using MySQL3.23 on WindowsNT4.0 platform.
> > 2.
> > Whenever I try to use mysql_real_escape_string()
> > method,it works well with the compiler and fails
> while
> > linking.I am using VC++6.0 as environment .The
> reason
> > that I have traced out is:
> > i)
> > The function mysql_real_escape_string() is not
> coming
> > in the downloaded MySQL.I have checked up the .def
> > file in the "Includes" directory and found that
> the
> > function is not there in the .def file as well.
> > ii)
> > Then I tried to use mysql_escape_string(),but the
> > documentation says to use
> mysql-real_escape-string.
> > iii)
> > Pl note that mysql_escape_string is present in the
> > .def file in the "includes" directory but not
> > mysql_real_escape_string().
> > 3.
> > I request you to suggest remedy for the same.
> >
> > Regards,
> > Ravikumar Sharma Chengalvala
> > Software Engineer
>
>
> Hi!
>
> I must say I do not truly know how that error crept
> into Win32 source,
> but that function is truly simple :
>
>
> ulong STDCALL
> mysql_real_escape_string(MYSQL *mysql, char
> *to,const char *from,
> ulong length)
> {
> return
>
mysql_sub_escape_string(mysql->charset,to,from,length);
> }
>
>
>
> Regards,
>
> Sinisa
>
> ____ __ _____ _____ ___ == MySQL
> AB
> /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Sinisa
> Milivojevic
> /*/ /*/ /*/ \*\_ |*| |*||*|
> mailto:[EMAIL PROTECTED]
> /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Larnaca,
> Cyprus
> /*/ /*/ /*/\*\_/*/ \*\_/*/ |*|____
> ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^
> /*/ \*\
> Developers Team
>
>
---------------------------------------------------------------------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list
> archive)
>
> To request this thread, e-mail
> <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
>
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try:
> http://lists.mysql.com/php/unsubscribe.php
>
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php