watthehell Posted September 4, 2007 Share Posted September 4, 2007 hi i have this function function DisplayCalender($id,$month,$year) I haven't copied the whole function here.... it is big I just want to use it in my php page . How shall i use this function in my page , somebody help me please .... thnks Quote Link to comment https://forums.phpfreaks.com/topic/67880-solved-how-to-use-this-function/ Share on other sites More sharing options...
gerkintrigg Posted September 4, 2007 Share Posted September 4, 2007 er......... What does it do? I presume it displays a calendar? You'll need to pass three variables to it... try something like: //FUNCTION HERE $id=1; $month=12; $year=2007; DisplayCalender($id,$month,$year); and see if you get any errors... you might need to change the format of the id, month and year variables. Hope that helps, but it is a kind of pee in the wind type guess unless I know what it does and how is parses the variables. Good luck. Quote Link to comment https://forums.phpfreaks.com/topic/67880-solved-how-to-use-this-function/#findComment-341197 Share on other sites More sharing options...
watthehell Posted September 4, 2007 Author Share Posted September 4, 2007 ya thnks, it worked this is to display the calendar but one more thing $id=1; $month=12; $year=2007; i need this as todays date, how to get that .... thnks in advance Quote Link to comment https://forums.phpfreaks.com/topic/67880-solved-how-to-use-this-function/#findComment-341210 Share on other sites More sharing options...
GingerRobot Posted September 4, 2007 Share Posted September 4, 2007 As already said, we cannot possibly know how this function works. We can only guess. I've no idea what the $id variable is for. Perhaps that is the variable containing the day of the month. Quote Link to comment https://forums.phpfreaks.com/topic/67880-solved-how-to-use-this-function/#findComment-341212 Share on other sites More sharing options...
watthehell Posted September 4, 2007 Author Share Posted September 4, 2007 yes id is for date and month and year , what i need is just to find the current date , day month and year separately from php so that i can assign in these variables. thnks. Quote Link to comment https://forums.phpfreaks.com/topic/67880-solved-how-to-use-this-function/#findComment-341214 Share on other sites More sharing options...
GingerRobot Posted September 4, 2007 Share Posted September 4, 2007 Try the date() function. Quote Link to comment https://forums.phpfreaks.com/topic/67880-solved-how-to-use-this-function/#findComment-341216 Share on other sites More sharing options...
watthehell Posted September 4, 2007 Author Share Posted September 4, 2007 ya, thnks.. now i will make it solved Quote Link to comment https://forums.phpfreaks.com/topic/67880-solved-how-to-use-this-function/#findComment-341219 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.