View Single Post
Old 07-12-2004, 09:08 PM   #3 (permalink)
FaderMonkey
Psycho
 
FaderMonkey's Avatar
 
Location: Orlando, FL
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?
FaderMonkey is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46