RE: [PHP] include question
| From: | Aaron Axelsen | Date: | Sun, 27 Jun 2004 19:56:45 +0000 |
| Subject: | RE: [PHP] include question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-189124@lists.php.net to get a copy of this message | ||
Thanks, worked wonders.
--
Aaron Axelsen
Email: lists@frozenpc.net
-----Original Message-----
From: Greg Donald [mailto:destiney@gmail.com]
Sent: Monday, June 21, 2004 10:40 AM
To: lists@frozenpc.net
Cc: php-general@lists.php.net
Subject: Re: [PHP] include question
On Mon, 21 Jun 2004 10:31:42 -0500 (CDT), Aaron Axelsen <lists@frozenpc.net>
wrote:
> Below is the chunk of code i am using. In the verify_faculty_info.php
> file i call the search function. The search function is coded in the
> function.php file which is included in the accesscontrol.php.
>
> I thought that it would carry over to the verify_Faculty_info.php file.
> Was I mistaken?
>
> Thanks
>
> <?php
> include('accesscontrol.php');
> if (isset($_GET['action'])){
>
> if ($_GET['action'] == "add" && $_SESSION['role'] == 1)
> {
> include('includes/add_product.php');
> } elseif ($_GET['action'] == "verify") {
> echo "verifying now";
> search();
> include('includes/verify_faculty_info.php');
> } else {
> echo "action asked for is not specified"; } } else {
> echo "action is not specified";
> }
> ?>
Looks like it would work to me. You might try function_exists() to help
track down the problem. Probably a typo or mispelled function name.
--
Greg Donald
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php