attempting to connect to the database. What is wrong with this code?
Fatal error: Failed opening required 'cis-test/cis_connect.php' (include_path='./:/usr/local/lib/php') in /home/boon888/bluestormmedia-www/cis-test/Barriersquestions.php on line 18
Do I have the wrong path for the database I want to connect to?
This is the script in my connection script php page:
11 DEFINE (DB_USER, "xxxxxx");
12 DEFINE (DB_PASSWORD, "xxxxxx");
13 DEFINE (DB_HOST, "localhost");
14 DEFINE (DB_NAME, "xxxxxxxxxxx_com");
15 # display_members.php
16 $connection=mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);
This is the code where my php page calls the connect php page
17 //Include the MySQL information
18 require_once ("cis-test/cis_connect.php");
19 $db=mysql_select_db(DB_NAME);
I am new to this but not to programming. Any suggestions?
Thanks
sincerely,
Sonac
How is this error appearing when I am...
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK