RE: [PHP-DB] How to redirect after a valid login
| From: | Larry Sandwick | Date: | Mon, 15 Mar 2004 20:39:48 +0000 |
| Subject: | RE: [PHP-DB] How to redirect after a valid login | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-33458@lists.php.net to get a copy of this message | ||
Here is the error I get when I use the include below:
include "MainMenu.php";
Fatal error: Cannot redeclare class db in
/tmp/disk/home/webmaster/Files/WWW/pearDB/DB.php on line 211
// Larry
-----Original Message-----
From: Benjamin [mailto:benjamin@thescruffypirate.org]
Sent: Saturday, March 13, 2004 9:14 PM
To: php-db@lists.php.net
Subject: Re: [PHP-DB] How to redirect after a valid login
What kind of error does it give you? Because in the snippet you gave us
you wrote
> include "mainmenu.php"; // Which gives me an error !
And that should give you an error because it should be
include( "mainmenu.php" ); //note parenthesies
I have done what you want to do before like so
if( $logged_in ) include( "logged_in_script.php" );
else include( "logged_in_failed.php" );
So what error do you get?
Goodluck,
Benjamin
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php