Loading Date
#1

Hi, my database has:
|Nick|Password|DateRegistered|
|Oficer|213134332|2018-02-26|

And I want share 'DateRegistered' in dialog.
PHP код:
 cache_get_?(0"DateRegistered"Player[playerid][DateRegistered]); 
Which variable use to date?
Reply
#2

What are you currently saving; timestamp or plain data in a string? If it's a string it'd have to be loaded normally with the cache_get_value_name assuming you're variable is also set as string. If it's a timestamp it'd have to be converted in date format. I recommend using current timestamps as they are easier to deal with that kind of thing you want to achieve.

https://sampwiki.blast.hk/wiki/MySQL/R40...get_value_name

If interested about the timestamps https://sampforum.blast.hk/showthread.php?tid=254915%5D
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)