mysql_real_escape_string
#1

Hi,

I using

mysql_real_escape_string but in wiki

https://sampwiki.blast.hk/wiki/MySQL/R33..._escape_string

I found just

mysql_escape_string

It's same functions?
Reply
#2

Would be easier to do mysql_format(...); then use the %e for escaping.
https://sampwiki.blast.hk/wiki/MySQL/R33#mysql_format

And yeah, they do the same.
Reply
#3

Yes both are same
Reply
#4

Can i use %e without mysql_format?
Reply
#5

Quote:
Originally Posted by ScIrUsna
Посмотреть сообщение
Can i use %e without mysql_format?
No, you cannot.
Reply
#6

Because strange i use %e and mysql_format now but query when i update not updateing nothing
Reply
#7

how are you running the query
Reply
#8

But if i use mysql_real_escape_string before query is not necessary use %e and mysql_format?
Reply
#9

dont use mysql_format if you're going to use mysql_real_escape_string.

I just find mysql_format easier
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)