Small question about MySQL
#1

Since you cannot use '%e' in format or insert, how the heck do I then escape string? Im talking about tQuerries.

For example how would I escape string here with tQuerries
PHP код:
UPDATE `playersSET `Username`='%s' WHERE `ID`=%
Reply
#2

MySQL has its own specifier "%e" which can be used in MySQL's format.

SAMP introduced its own in 0.3.7 which is "%q" and can only be used in "format".
Reply
#3

Well I tried using %e earlier but I was told by Jeff I cannot use it inside formats
Reply
#4

You use "%e" on "mysql_format", and "%q" on "format".
Reply
#5

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
You use "%e" on "mysql_format", and "%q" on "format".
Ahaaaaaaaaaaaaaaaaa! Thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)