31.12.2011, 16:46
Im not sure how to use escape string's cos i dont know the way they working
So if someone can give me an CORRECT example and EXPLAIN sql escape string's i will be grateful
Here is how i use them but i dont think its correct:
Please do not try to help if you just THINK you know these.Thx
So if someone can give me an CORRECT example and EXPLAIN sql escape string's i will be grateful
Here is how i use them but i dont think its correct:
pawn Код:
new Query[128],QueryEsc[128];
format(Query, sizeof(query),"SELECT * FROM `samp_users` WHERE `UserName`='%s' AND `Password`='%s'", UserNameString, PasswordString);
mysql_query(Query);
mysql_real_escape_string(Query, QueryEsc);
mysql_store_result();
if(mysql_num_rows())
{
mysql_fetch_row_format(Query);
printf("%s", Query);
}