02-27-2008, 10:31 AM
|
#2 (permalink)
|
|
The Acquainted
Join Date: Oct 2007
Posts: 170
Thanks: 18
|
You're double trying to make a connection to the database.
A proper solution would be to make the connection in the config.inc file.
In that case, put this in your config.inc file:
PHP Code:
mysql_connect("localhost", "user", "pwd") or die(mysql_error());
mysql_select_db("db") or die(mysql_error());
You can delete the dbconn line now. Every time you include your config file it connects to the database automaticly.
Hope this is what you want though :).
|
|
|
|