MySQL R7 question
#1

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:
pawn Код:
stock UpdateField(playerid,fieldname[]) {
format(query,sizeof(query),"UPDATE db SET '%s' = something",fieldname);
2.When and for what reason should "mysql_real_escape_string" be used?
Reply


Messages In This Thread
MySQL R7 question - by dusk - 11.05.2013, 05:39
Re: MySQL R7 question - by dusk - 12.05.2013, 12:01
Re: MySQL R7 question - by Vince - 12.05.2013, 12:18
Re: MySQL R7 question - by dusk - 12.05.2013, 15:13
Re: MySQL R7 question - by Vince - 12.05.2013, 15:34
Re: MySQL R7 question - by dusk - 12.05.2013, 15:53

Forum Jump:


Users browsing this thread: 1 Guest(s)