Pulling a date from MySQL DB
#3

You can have an example..

LoadPlayerDataFromSQL
PHP код:
PlayerInfo[playerid][Year]     =     cache_get_field_content_int(i"Year"gMySQL);
PlayerInfo[playerid][Month] =     cache_get_field_content_int(i"Month"gMySQL);
PlayerInfo[playerid][Day]     =     cache_get_field_content_int(i"Day"gMySQL); 
Shows in /Stats
PHP код:
format(stringsizeof(string), "Registration Date: [%02d/%02d/%02d]\n"
gStr2PlayerInfo[playerid][Year], PlayerInfo[playerid][Month], PlayerInfo[playerid][Day]); 
Hope this helped ya
Reply


Messages In This Thread
Pulling a date from MySQL DB - by Jing_Chan - 06.08.2018, 13:11
Re: Pulling a date from MySQL DB - by Jing_Chan - 06.08.2018, 21:55
Re: Pulling a date from MySQL DB - by NeXTGoD - 06.08.2018, 22:39
Re: Pulling a date from MySQL DB - by Banditul18 - 06.08.2018, 23:00
Re: Pulling a date from MySQL DB - by Calisthenics - 07.08.2018, 08:35
Re: Pulling a date from MySQL DB - by Jing_Chan - 07.08.2018, 11:10
Re: Pulling a date from MySQL DB - by NaS - 07.08.2018, 12:32
Re: Pulling a date from MySQL DB - by Calisthenics - 07.08.2018, 13:19
Re: Pulling a date from MySQL DB - by Jing_Chan - 07.08.2018, 13:22
Re: Pulling a date from MySQL DB - by NaS - 07.08.2018, 14:13

Forum Jump:


Users browsing this thread: 1 Guest(s)