How to connect mysql?
#1

I'm have this line for connect mysql:
Код:
   DB_Connect = mysql_connect(SQL_Host, SQL_User, SQL_Pass, SQL_DB);
I'm definited DB_Connect
The SQL_Host.SQL_user,etc... is:
Код:
#define localhost true
#if localhost == true
#define SQL_Host    	"localhost"
#define SQL_User    	"root"
#define SQL_DB      	"tbr"
#define SQL_Pass    	""
#else
#define SQL_Host    	"127.0.0.1"
#define SQL_User    	"server_472"
#define SQL_DB      	"server_472_mata"
#define SQL_Pass    	"07062003"
#endif
And my error is:
Код:
C:\Users\Sorin\Desktop\Gamemode De La 0\gamemodes\Kernel.pwn(243) : warning 213: tag mismatch
This Line:
Код:
DB_Connect = mysql_connect(SQL_Host, SQL_User, SQL_Pass, SQL_DB);
Please help!

EDIT: I'm have on gamemodeexit:
Код:
mysql_close(DB_Connect);
And in this line i'm have tag mismach error.
Reply


Messages In This Thread
How to connect mysql? - by Longover - 28.01.2018, 14:26
Re: How to connect mysql? - by Flamehaze7 - 28.01.2018, 23:23
Re: How to connect mysql? - by MBJ - 28.01.2018, 23:38
Re: How to connect mysql? - by Mugala - 29.01.2018, 11:58

Forum Jump:


Users browsing this thread: 1 Guest(s)