PDA

View Full Version : easy php Q


Will
12-04-2001, 07:52 PM
ok i need to know how to use php to determine what month it is, simple enough yet i searched the php manual and didnt find anything.

thanks,
Will ;)

kevin
12-04-2001, 09:35 PM
See if this helps you:

http://www.php.net/manual/en/function.date.php

Kevin

Will
12-04-2001, 09:55 PM
yep that worked, thanks

:)

scoutt
12-05-2001, 12:55 PM
he he :D didn't look hard enough did you??


did you use
$date = date(d,M,Y);

Will
12-05-2001, 03:22 PM
i typed month :p

i used, date(M)

all i needed was the month and year

so i stored month as a variable and year as a variable (because they will be inserted into my db so that users can search for archives according to the month the articles were written) =)