[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pear-general
Subject:    Re: [PEAR] PEAR::Calendar, error Missing argument 1 for calendar_month()
From:       Louie Miranda <lmiranda () gmail ! com>
Date:       2004-09-30 5:27:15
Message-ID: 5016fc504092922272e8fa791 () mail ! gmail ! com
[Download RAW message or body]

it worked, thank you.


On Wed, 29 Sep 2004 21:28:55 -0700, Matthew Fonda <mfonda@dotgeek.org> wrote:
> 
> You are getting those errors because you are missing two parameters,
> year and months.
> 
> Try something like:
> $Month = & new Calendar_Month(2004, 9);
> 
> That will work just fine. You just need to specify the year and month
> you would like to use.
> 
> --
> Regards,
> Matthew Fonda
> 
> 
> On Wed, 2004-09-29 at 20:52, Louie Miranda wrote:
> > error on browser:
> > Warning: Missing argument 1 for calendar_month() in
> > /usr/local/lib/php/Calendar/Month.php on line 62
> >
> > Warning: Missing argument 2 for calendar_month() in
> > /usr/local/lib/php/Calendar/Month.php on line 62
> > 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
> > 27 28 29 30 31
> >
> > code:
> > <?php
> > require_once('Calendar/Month.php');
> >
> > $Month = & new Calendar_Month();
> > $Month->build();
> >
> > while ( $Day = & $Month->fetch() ) {
> >     echo ( $Day->thisDay() ."\n" );
> > }
> > ?>
> >
> >
> > what could i be missing? this is just a simple example i got from google?
> >
> > --
> > Louie Miranda
> > http://www.axishift.com
> 
> 



-- 
Louie Miranda
http://www.axishift.com

-- 
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic