RE: [PHP] functions????
| From: | Wizaerd) | Date: | Sat, 27 Jan 2001 23:50:02 +0000 |
| Subject: | RE: [PHP] functions???? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-37050@lists.php.net to get a copy of this message | ||
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:Kumanan@uni.de]
> Sent: Saturday, January 27, 2001 4:29 PM
> To: php-general@lists.php.net
> 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: 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
>
>
>