I have a drop down menu in an insert form which inserts months as numbers into my database (so I can order by later).
When I bind the number back into my page how do I convert it back to a month ie 1 = January?
[man]date[/man] and [man]mktime[/man] are what you need.
Example:
echo date("F", mktime(0, 0, 0, 1, 1, 2005));
will echo out January
Thanks Defender :-) that works perfectly. Is there a way of truncating to the three letters ie Jan, Feb?
edit: just replace "F" with "M" thanks again
You're welcome. Glad to have assisted! That's why I provided those links to the functions, so you could read up on them... I encourage you to continue to peruse the manual. You'll be able to help yourself a lot by finding things for yourself, and then posting back if you have specific questions about the functions, or the code you wrote using them.