FROM_UNIXTIME (How do I use it correctly?)
#1

pawn Код:
stock GetDate(timestamp)
{
    new query[300];
    format(query, sizeof(query), "SELECT FROM_UNIXTIME(UNIX_TIMESTAMP(%d),'%D %M %Y %h:%i')", timestamp);
    mysql_query(query);
    mysql_store_result();
    if(mysql_num_rows() > 0)
    {
        format(query, sizeof(query), "%s", timestamp);
    }
    mysql_free_result();
    return 1;
}
Reply
#2

BUMP.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)