I have a website where users can sign up and they are given 30 days access to the site, I store the date the membership should expire in my sql database in the following format
Currently I show in there user details the date their membership expires as
"Your membership expires on 2006-06-22"
A have a couple of questions. Firstly, how can I format the date to display it as
I print it with the following code
<? print $membershiprow['myexpiredate']; ?>
And secondly, is it possible to count down the days until that date, so if the membership expired tomorrow then it would print the phase
"Your membership expires in 1 day"
Any help would be appricated as always
Thanks in advance