Please ,could anybody help me ? I'm not so familiar with PHP.

I've the following problem with my code  when I try to make an object from
the class "forum" with the code "$test=new forum()".  I always get a warning
on this: "Warning: Missing argument 1 for forum() in
/lvdata/www/tennis/php/sql.inc"
Is it not possible to just make a default constructor and an other
constructor like in JAVA ?
Thanks for helping....


class forum
{
     var $naam;
     var $tijd;
     var $tekst;

     function forum()
     {
     }


     function forum($naam,$tijd,$tekst)
     {
          $this->naam=$naam;
          $this->tijd=$tijd;
          $this->tekst=$tekst;
    }
}


$test=new forum();

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

Reply via email to