Any ideas why this script is not executing?
$vmonthname = jdmonthname($vday,1); (where $vday="7")
It should return "July", but instead I get this error:
Fatal error: Call to undefined function: jdmonthname()
Fatal error: Call to undefined function: jdmonthname()
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
- noguru
- Forum Commoner
- Posts: 61
- Joined: Thu Jun 06, 2002 4:03 am
- Location: Just north of the City Of Gold, Land of Milk and Honey
Yes, the syntax is correct and I even get attributes when I click "(" after the jdmonthname(. Weird enough, when I copy it from the manual as "JDMonthName" instead of "jdmonthname" the font color changes to blue, but then I don't get the attributes when I click "(".
I also see the function expects the attributes to be both integers, like "jdmonthname(7,1)" instead of "jdmonthname($vday,1)" where $vday="7", but this is not working either.
Is there maybe another function to get "July" from "7"?
I also see the function expects the attributes to be both integers, like "jdmonthname(7,1)" instead of "jdmonthname($vday,1)" where $vday="7", but this is not working either.
Is there maybe another function to get "July" from "7"?
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
I thought it was a user-defined function but now I check and it's part of the calendar functions which seem kinda cool. Only thing is you need PHP compiled with --enable-calendar, if you have Windows the functions should be built in.
Mac
Mac