Re: functions????
| From: | Kumanan | Date: | Sun, 28 Jan 2001 00:06:22 +0000 |
| Subject: | Re: functions???? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-37054@lists.php.net to get a copy of this message | ||
ohhhh
thanks
kumanan
"Nick Winfield" <pioneer@dac.org> schrieb im Newsbeitrag
news:Pine.BSF.4.21.0101272335400.72301-100000@phoenix.shells.co.uk...
> On Sun, 28 Jan 2001, Kumanan wrote:
>
> > Hi,
> >
> > i got problem with functions ....
> >
> >
> > when i call the files with url//filename.php?action=pal
> >
> > all the time it says
> > Fatal error: Call to unsupported or undefined function pal_edit() in
> > /cfiles/memberlink.php on line 7
> >
>
> Declare your functions before the switch() statement - your switch
> statement is being executed before your functions even get a chance to be
> defined. :)
>
> e.g.
>
> function sayBlah() {
> echo "Blah!";
> }
>
> switch($task) {
> case do_stuff:
> sayBlah();
> break;
> case other_stuff:
> # whatever
> break;
> default:
> # whatever
> break;
> }
>
> Cheers,
>
> Nicky W..
> -[ pioneer@dac.org ]-
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>