11.05.2013, 05:39
(
Последний раз редактировалось dusk; 12.05.2013 в 12:06.
)
Can I get the numer of rows in the same function with R7?
Why I need it? I have a function to check if an item exists in my DB, but how can i return something from it when it calls another function!
EDIT: few more questions related to MySQL:
1. Is it okay to create a function to update a field in MySQL, something like:
2.When and for what reason should "mysql_real_escape_string" be used?
Why I need it? I have a function to check if an item exists in my DB, but how can i return something from it when it calls another function!
EDIT: few more questions related to MySQL:
1. Is it okay to create a function to update a field in MySQL, something like:
pawn Код:
stock UpdateField(playerid,fieldname[]) {
format(query,sizeof(query),"UPDATE db SET '%s' = something",fieldname);