I'm confused as hell when it comes to date fuctions. I am using a field in my table "join_date" in which I collect the date of when a member joins. I use this function to insert the info now() I have been trying different ways to pull up the info and print it out with the day of the month and the month in an abbreviated version, but I can't seem to get it right. What am I doing wrong? Thanks in advance for any help.
$query = "SELECT dayname(postdate), dayofmonth(postdate), monthname(postdate), year(postdate) from table";
$day = ($dayname(postdate));
$month = ($monthname(postdate));
$date = ($dayofmonth(postdate));
$year = ($year(postdate));
echo (date("D. M d. , Y"));