The type of field I have my date/time setup as is TIMESTAMP. When I'm defining and running my query, I'm doing it like this:
$query = 'SELECT * FROM weblog2 ORDER BY entrydate DESC'
if ($r = mysql_query ($query))
while ($row = mysql_fetch_array ($r)) {
print ...
How do I go about using the PHP date() function? Where do I go from here?
|