include question, WHY doesn't this work...

From: Date: Mon, 23 Jul 2001 17:43:28 +0000
Subject: include question, WHY doesn't this work...
Groups: php.general 
Request: Send a blank email to php-general+get-59253@lists.php.net to get a copy of this message
hey- I have a piece of code which does a simply INSERT query into an mp3 table. I've tested it out, and it completes the query, however there is one bug that I just have no clue about. this code does not work when i try to connect to the db: include("lib/db_config.php"); $connection = db_connect("fplg"); if(!connection) { die(sql_error()); } the include fails and so the db_connect function is undefined. this code works: include("db_config.php"); $connection = db_connect("fplg"); if(!connection) { die(sql_error()); } I DO have a directory called lib in my root folder. am I calling the include wrong in that first piece. Note that I also tried the first one with a foward slash in front of the 'lib', but had no luck. help! chris

« previous php.general (#59253) next »