02.12.2015, 23:53
hi guys i did put IM_BANK fs with DS in a mysql server and every time when i connect i need to do another acc what error can do that ? without giving me in the pawno some warnings or something like that?
if(mysql_ping() == -1) printf("Connection to mysql failed!");
else printf("Connected to mysql");
forward ConnectMySQL(); public ConnectMySQL() { if(mysql_connect(SQL_HOST,SQL_USER,SQL_DB,SQL_PASS )) { printf("[MYSQL]: Conectare la `%s` a avut succes!",SQL_DB); } else { printf("[MYSQL]: [ERROR]: Conectare la `%s` a esuat!",SQL_DB); } return 1; } |