your function declarations must appear before you actually call them.

> code
> .......................
> <?
> function pf() { echo "profile"; }
> 
> function pal_edit() { echo "pal";  }

> switch ($action) {
>     case "pf":
>         profile();
>         break;
> 
>     case "pal":
>        pal_edit();
>         break;
> 
> }
> 
> 
> 
> ?>

Joseph E. Sheble
a.k.a. Wizaerd
Wizaerd's Realm
Canvas, 3D, Graphics, 
ColdFusion, PHP, and mySQL
http://www.wizaerd.com
=================================

> -----Original Message-----
> From: Kumanan [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, January 27, 2001 4:29 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] functions????
> 
> 
> 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
> 
> 
> 
> code
> .......................
> <?
> switch ($action) {
>     case "pf":
>         profile();
>         break;
> 
>     case "pal":
>        pal_edit();
>         break;
> 
> }
> 
> 
> function pf() { echo "profile"; }
> 
> function pal_edit() { echo "pal";  }
> 
> ?>
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to