> -Original Message-
> From: Rudy Metzger [mailto:[EMAIL PROTECTED]
> Sent: 12 May 2004 14:27
>
> On Wed, 2004-05-12 at 15:18, Mark Constable wrote:
> >
> > function forum($naam=NULL,$tijd=NULL,$tekst=NULL)
> >
> > and test the incoming variables with isset() before
> > attempting to
> No, you cannot do this kind of method overloading, not like this anyway.
> If you are using PHP5 you can kind of emulate overloading by using the
> __call() function... some googling will find examples.
>
> You can at least make the below work by removing the first forum()
> instance and using
>
On Wed, 12 May 2004 11:27 pm, Rudy Metzger wrote:
> On Wed, 2004-05-12 at 15:18, Mark Constable wrote:
> > You can at least make the below work by removing the first
> > forum() instance and using
> >
> > function forum($naam=NULL,$tijd=NULL,$tekst=NULL)
> >
> > and test the incoming variables wit
Thanks Mark for helping me out...
The way you describe it with "function
forum($naam=NULL,$tijd=NULL,$tekst=NULL)" is a good trick !!
Kind Regards.
"Mark Constable" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]
> On Wed, 12 May 2004 10:43 pm, Lieve Vissenaeken wrote:
> > Please ,c
On Wed, 2004-05-12 at 15:18, Mark Constable wrote:
> On Wed, 12 May 2004 10:43 pm, Lieve Vissenaeken wrote:
> > 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
Strange that you get this error. Normally you should get a "Fatal error:
Cannot redeclare forum::forum() "
PHP does not support 'function overloading', at least not in a way java
is doing it. One of the drawbacks of a free typed langauge (in contrary
to a strictly typed one).
cheerio
/rudy
O
On Wed, 12 May 2004 10:43 pm, Lieve Vissenaeken wrote:
> 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: M
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"
8 matches
Mail list logo