Cannot redeclare db_connect() (previously declared in /usr/w

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mccommunity
Forum Commoner
Posts: 62
Joined: Mon Oct 07, 2002 8:55 am

Cannot redeclare db_connect() (previously declared in /usr/w

Post by mccommunity »

I have one php page that does a query to a db and displays a list I have an include file that does a query and displays dropdown boxes on the first page. In both files I have an included that points to config.php which has the connection information on it. When I uninclude the second drop down list from the first page the first page works if I include it I get this message:

Cannot redeclare db_connect() (previously declared in /usr/www/users/mc/unctions/config.php:13) in <b>/usr/www/users/mc/functions/config.php on line 11


What am I doing wrong?
bionicdonkey
Forum Contributor
Posts: 132
Joined: Fri Jan 31, 2003 2:28 am
Location: Sydney, Australia
Contact:

Post by bionicdonkey »

use include_once() or require_once()
Post Reply