MYSQL String Problem
#9

Quote:
Originally Posted by nmader
Посмотреть сообщение
Actually, if you are using an updated version of mysql (BlueG's at least) you have to use:
pawn Код:
mysql_query(DB, string);
When you start your connection you do DB = blablabla
pawn Код:
DB = mysql_connect(conntectshit);
I updated to R7 and now it's saying

Код:
warning 204: symbol is assigned a value that is never used: "DB"
error 017: undefined symbol "mysql_query"
error 017: undefined symbol "mysql_query"
error 017: undefined symbol "mysql_query"
pawn Код:
DB = mysql_connect("localhost","user","db","pass"); // Gamemodeinit
pawn Код:
new string[310], HashedPW[145];
    WP_Hash(HashedPW, sizeof (HashedPW), inputtext);
    format(string, sizeof(string), "INSERT INTO `accounts` (Name, Password) VALUES ('%s', '%s')", GetName(playerid), HashedPW);
    mysql_query(DB, string);
Reply


Messages In This Thread
MYSQL String Problem - by Cole_William - 22.07.2014, 19:06
Re: MYSQL String Problem - by Sawalha - 22.07.2014, 19:11
Re: MYSQL String Problem - by Cole_William - 22.07.2014, 19:13
Re: MYSQL String Problem - by nmader - 22.07.2014, 19:15
Re: MYSQL String Problem - by arlindi - 22.07.2014, 19:15
Re: MYSQL String Problem - by Sawalha - 22.07.2014, 19:17
Re: MYSQL String Problem - by Cole_William - 22.07.2014, 19:18
Re: MYSQL String Problem - by Cole_William - 22.07.2014, 19:21
Re: MYSQL String Problem - by Cole_William - 22.07.2014, 19:35
Re: MYSQL String Problem - by driftpower - 22.07.2014, 20:06

Forum Jump:


Users browsing this thread: 1 Guest(s)