MySQL simple information retrieving [Help]
#2

I haven't tried before this. Here is command version:

Код:
new Cache:result = mysql_query(connection, "SELECT username FROM player");
if(cache_num_rows())
{
	new PlayerName[24];
	for(new i = 0; i != cache_num_rows(); i++)
	{
	    cache_get_value_name(i, "username", PlayerName, sizeof(PlayerName));
	    printf("PLAYER_NAME: '%s'", PlayerName);
	}
}
cache_delete(result);
Reply


Messages In This Thread
MySQL simple information retrieving [Help] - by OriginalShark - 30.06.2017, 19:35
Re: MySQL simple information retrieving [Help] - by Freedom. - 30.06.2017, 20:01
Re: MySQL simple information retrieving [Help] - by OriginalShark - 30.06.2017, 21:49
Re: MySQL simple information retrieving [Help] - by Konstantinos - 01.07.2017, 09:24
Re: MySQL simple information retrieving [Help] - by OriginalShark - 01.07.2017, 10:00
Re: MySQL simple information retrieving [Help] - by OriginalShark - 02.07.2017, 10:18

Forum Jump:


Users browsing this thread: 2 Guest(s)