thanks for the info, r937
i was under the impression that date calculations were simpler with a unix timestamp. you just add the number of seconds that you need. i don't really know how to do calculations on MySQL timestamps
also, since i made my post i came across doing something like this if you are using a unix timestamp:
PHP Code:
// Get title from images uploaded after 2002
$startYear = mktime(0,0,0, date('m'), date('d'), date('2002'));
$sql = "SELECT title FROM images
WHERE upload_date > $startYear
ORDER BY upload_date ASC";
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result)) {
echo $row['title'] . "<br />";
}
im still experimenting with it all but any input you might have would be really appreciated!
thanks
busch
Bookmarks