Re: How to redirect after a valid login

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 file. Look into that, and replace require() and include() with require_once() and include_once() to avoid this kind of conflict.


   Bruno Ferreira
---
[This E-mail scanned for viruses by Declude Virus]

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux