MySQL R6 functions with R7 functions
#1

I'm doing a little check in my script to see whether an account exists and following that is around 150 or more lines of code which will be executed if the account does exist. I just want to find out how would I use the old functions with the new ones to execute this. Would it be something like this?

pawn Code:
format(query,sizeof(query),"SELECT `Name` FROM `accounts` WHERE `Name`='%s'",escapename);
mysql_function_query(1,query,true,"","");
mysql_store_result();
//etc...
I've seen where mysql_store_result() can be used in the R7 version.
Reply
#2

I assume you need to use mysql_store_result in the callback (which you've left blank ("", "")). I have yet to experiment with this myself.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)