On 14 March 2004 02:14, Benjamin wrote:
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
Nope.
:14 PM
To: [EMAIL PROTECTED]
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
Larry Sandwick wrote:
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
Seems that MainMenu.php (or a file included by it) re-includes the
DB.php
on 2004/03/15 15:39, Larry Sandwick at [EMAIL PROTECTED] made the following
allegation:
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
As someone else
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(
Is there a way that after a execution of a Login script and validation
of login from a MySql database to automatically redirected to run
another script ?
Use PHP's header() function. See the manual for syntax.
Larry
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit:
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] How to redirect after a valid login
Is there a way that after a execution of a Login script and validation
of login from a MySql database to automatically redirected to run
another script ?
Use PHP's header() function. See
Message-
From: Larry Sandwick [mailto:[EMAIL PROTECTED]
Sent: Friday, March 12, 2004 2:25 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] How to redirect after a valid login
What is considered to be the headers() information
When I use the header() functions, I get an error stating that I
You can do a redirect at any point in your code as long as you haven't
sent anything to the browser yet. You can run 10,000 lines of PHP code
and do 1,000 queries and still send a redirect to the browser. In a nut
shell, have no echo statement before your redirect.
On Mar 12, 2004, at 3:02
]
Sent: Friday, March 12, 2004 4:12 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] How to redirect after a valid login
You can do a redirect at any point in your code as long as
you haven't
sent anything to the browser yet. You can run 10,000 lines of
PHP code
10 matches
Mail list logo