Re: [PHP] mysql_real_escape_string("asdasddas") ??? wtf

2009-02-21 Thread 9el
--- Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get a Free CD of Ubuntu mailed to your door without any cost. Visit : www.ubuntu.com -- On

Re: [PHP] mysql_real_escape_string("asdasddas") ??? wtf

2009-02-21 Thread Tim | iHostNZ
OK, thanks. I think you guys are right. It's just safer and simpler than writing my function and probably not really slower either. need a db connection anyway. Read a bit on the function and yeah, a bit of screwed up binary data might yet cause funny errors although the xml is a feed from a truste

Re: [PHP] mysql_real_escape_string("asdasddas") ??? wtf

2009-02-21 Thread Robert Cummings
On Sat, 2009-02-21 at 19:19 +1300, Tim | iHostNZ wrote: > Hi everyone, > > Can anyone here tell me why mysql_real_escape_string("asdasddas") returns an > empty string? > > Just writing a data import... > > Anyway, for security but also simply because i might have a ' in the string, > i need to e

[PHP] mysql_real_escape_string("asdasddas") ??? wtf

2009-02-20 Thread Tim | iHostNZ
Hi everyone, Can anyone here tell me why mysql_real_escape_string("asdasddas") returns an empty string? Just writing a data import... Anyway, for security but also simply because i might have a ' in the string, i need to escape it. Apparently it is good practice to use mysql_real_escape_string()