MySQL Question!
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
pawn Код:
mysql_function_query(connectionHandle, query[], bool:cache, callback[], format[], {Float,_}:...);
  • connectionHandle: returned by mysql_connect (usually 1)
  • query: the query to execute (pre-formatted)
  • cache: enable caching - true/false - only useful for select queries
  • callback: function to call when the query is done (e.g. OnPlayerDataLoaded) - Can be left blank for update queries
  • format for the callback, similar to sscanf. E.g. "ds" - Can also be left blank
  • {Float,_}:...: Parameters to pass to that callback (e.g. playerid, ip) - Can be left blank if no parameters are passed.
Vince can you please explain me how to use it too but wich this example if posible

PHP код:
    new log[156];
    
format(log,sizeof(log),"INSERT INTO `playerlog` (`username`,`status`) VALUES ('%s','Disconnect')",PlayerName(playerid));//playername is my stock for getplayername
    
mysql_query(log); 
Reply


Messages In This Thread
MySQL Question! - by Steeve_Smith - 12.05.2012, 15:52
Re: MySQL Question! - by Vince - 12.05.2012, 16:04
Re : MySQL Question! - by Steeve_Smith - 12.05.2012, 16:06
Re: MySQL Question! - by [BG]PREDATOR - 12.05.2012, 16:14
Re: Re : MySQL Question! - by Vince - 12.05.2012, 16:18
Re : MySQL Question! - by Steeve_Smith - 12.05.2012, 16:27

Forum Jump:


Users browsing this thread: 1 Guest(s)