MySQL not working.
#3

Quote:
Originally Posted by Ranshand
Посмотреть сообщение
Change.
Код:
mysql_format(mysql, query, sizeof(query), "SELECT * FROM `players` WHERE `name` = '%e'", name);
To.
Код:
mysql_format(mysql, query, sizeof(query), "SELECT * FROM `players` WHERE `name` = '%s'", name);
The '%e' is there to prevent MySQL injection. The query is correct, there's something worng with reading the data recieved.
Reply


Messages In This Thread
MySQL not working. - by Shetch - 25.01.2014, 22:06
Re: MySQL not working. - by Ranshand - 25.01.2014, 22:08
Re: MySQL not working. - by Shetch - 25.01.2014, 22:15
Re: MySQL not working. - by iZN - 25.01.2014, 22:20
Re: MySQL not working. - by Shetch - 25.01.2014, 22:25
Re: MySQL not working. - by iZN - 25.01.2014, 22:27
Re: MySQL not working. - by Shetch - 25.01.2014, 23:48

Forum Jump:


Users browsing this thread: 1 Guest(s)