Hello, this is my first post, thanks in advance for any help you all can offer
I am working on my first website using php/mysql and have run into a problem early on.
First, I do have apache/php/mysql running and after several tests, they are working well.
I am working on a simple page where users can input some information that will be stored in a database.
The page is created and was/is working when it is all self contained within the index.php document, however, when I remove the following code from the index document and place it into another document it fails to work.
<?php $hostname = "localhost"; $db_user = "*****"; $db_password = "******"; $database = "bookBase"; $db_table = "users"; $db = mysql_connect($hostname, $db_user, $db_password); mysql_select_db($database,$db); ?>MY INCLUDE STATEMENTS IN THE index.php DOCUMENT LOOKS LIKE THIS:
<?php include ('home/blaise/public_html/secure/config.php'); include ('home/blaise/public_html/secure/functions.php'); ?>Ok, so what am I doing wrong?
Like I said, these scripts are working when they are all on the same page and I have also tested simple include scripts using just text and can confirm that the includes are working to at least that degree.
BTW The error I get when I submit data with the includes is:
ERROR: Access denied for user ‘www-data’@‘localhost’ (using password: NO)