@NogDogOct 16.2010 — #It's probably easiest to do it in the database query, as it's almost certainly a datetime type field, so you could use the MySQL DATEDIFF() function, along with CURDATE() for the first parameter.
@narutodude000authorOct 16.2010 — #I got $query="SELECT ID, DATEDIFF(CURDATE(),post_date), post_author, ...", then the outputed resource is transformed into an array. I can access fields by using $post['comment_count'], $post['post_author'], etc. How do I access the value of DATEDIFF(CURDATE(),post_date)?