helflin
New Member
Hi guys,
I have these code in an file with extension .lua
But i have one problem, when the CreatureName have ' ... an example: Knight'Parsk, it's a problem, but don't update in database because the illegal character '
I know that in PHP language have an function that put some \ before this ' to update/insert in database, this function is ADDSLASHES( ), but in .LUA i don't know...
Any solution?
Sorry for the mistakes, i don't speak English well and still don't like to use translators kkkkk
Thanks.
I have these code in an file with extension .lua
doPlayerSendTextMessage(cid,22,"Voce entrou na sala de treinamento.")
db.query("UPDATE `players` SET `is_training` = 1 WHERE name = '".. getCreatureName(cid).."'")
But i have one problem, when the CreatureName have ' ... an example: Knight'Parsk, it's a problem, but don't update in database because the illegal character '
I know that in PHP language have an function that put some \ before this ' to update/insert in database, this function is ADDSLASHES( ), but in .LUA i don't know...
Any solution?
Sorry for the mistakes, i don't speak English well and still don't like to use translators kkkkk
Thanks.