Getting a users name from id |
[eluser]mattpointblank[/eluser]
Look in the PHP manual for the date() function. Basically, to output a date, you need something like this: Code: $date = date('format', strtotime($your_database_timestamp)); Where I wrote 'format', use some of the options from this page: http://uk3.php.net/manual/en/function.date.php (eg 'Y-m-d'). The strtotime() function for the second parameter turns your database timestamp (which might be like "2010-11-30 00:00:00") into a unix timestamp (eg something like '123424543') which date() can work with. |
Messages In This Thread |
Getting a users name from id - by El Forum - 04-26-2010, 05:15 AM
Getting a users name from id - by El Forum - 04-27-2010, 12:15 AM
Getting a users name from id - by El Forum - 04-27-2010, 02:20 AM
Getting a users name from id - by El Forum - 04-28-2010, 01:02 PM
Getting a users name from id - by El Forum - 04-28-2010, 02:26 PM
Getting a users name from id - by El Forum - 04-28-2010, 02:42 PM
Getting a users name from id - by El Forum - 04-29-2010, 04:22 AM
Getting a users name from id - by El Forum - 04-29-2010, 04:50 AM
Getting a users name from id - by El Forum - 04-29-2010, 12:15 PM
Getting a users name from id - by El Forum - 04-29-2010, 12:44 PM
|