Mysql help
#3

mysql_query needs atleast 2 arguments.

pawn Code:
native Cache:mysql_query(conhandle, query[], bool:use_cache = true);
That "conhandle" is a number representing the connection. mysql_connect returns that number..

pawn Code:
new gDbHandle;

public OnGameModeInit()
{
    gDbHandle = mysql_connect(stuff);
}

// And then when you want to use it:
// mysql_query(gDbHandle, query);

EDIT: aaanad I'm too slow.
Reply


Messages In This Thread
Mysql help - by zeth98 - 05.06.2015, 10:57
Re: Mysql help - by Konstantinos - 05.06.2015, 11:01
Re: Mysql help - by dusk - 05.06.2015, 11:01
Re: Mysql help - by zeth98 - 05.06.2015, 11:29
Re: Mysql help - by J0sh... - 05.06.2015, 11:37
Re: Mysql help - by dusk - 05.06.2015, 11:41
Re: Mysql help - by zeth98 - 05.06.2015, 12:12
Re: Mysql help - by nezo2001 - 05.06.2015, 12:33
Re: Mysql help - by zeth98 - 05.06.2015, 12:42
Re: Mysql help - by nezo2001 - 05.06.2015, 12:54

Forum Jump:


Users browsing this thread: 1 Guest(s)