Mysql Escape
#1

how do i get this THIS
To let people use the '_' sign ?
Reply
#2

Your MySQL plugin should have a built-in mysql_real_escape_string() which should preserve characters as they are, but preventing SQL injection by escaping them (sending a short code instead of the character itself).
Reply
#3

Thank you, This is what i have i dont know why its not working. do you see anything wrong ?

PHP код:
    format(Querysizeof(Query), "SELECT * FROM `gta` WHERE 'username' = '%s'"DB_Escape(username));
    
Result db_query(DatabaseQuery
Reply
#4

Quote:
Originally Posted by Dotayuri
Посмотреть сообщение
Thank you, This is what i have i dont know why its not working. do you see anything wrong ?

PHP код:
    format(Querysizeof(Query), "SELECT * FROM `gta` WHERE 'username' = '%s'"DB_Escape(username));
    
Result db_query(DatabaseQuery
If you think your using MYSql then i see something wrong. The code you posted is SQLite.
Reply
#5

Quote:
Originally Posted by iggy1
Посмотреть сообщение
If you think your using MYSql then i see something wrong. The code you posted is SQLite.
What do you think i should change it to then ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)