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
#2

https://sampforum.blast.hk/showthread.php?tid=627520
Reply
#3

PHP код:
new MySQL:DB_Connect
Reply
#4

you can use this link > https://sampwiki.blast.hk/wiki/MySQL_Plugin#mysql_connect
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)