here's the connection.php:
<?php require("constants.php");
$connection = mysql_connect(DB_SERVER,DB_USER,DB_PASS);
if (!$connection) {
die("Database connection failed: " . mysql_error());
}
$db_select = mysql_select_db(DB_NAME,$connection);
if (!$db_select) {
die("Database selection failed: " . mysql_error());
}
?>
and this is the index.php:
<?php require_once("includes/connection.php"); ?>
<?php require_once("includes/functions.php"); ?>
<?php find_selected_page(); ?>
<?php include("includes/header.php"); ?>
<table width="276%" id="structure">
<tr>
<td width="212" id="navigation">
<?php echo public_navigation($sel_subject, $sel_page); ?> </td>
<td width="700" id="page">
<?php if ($sel_page) { ?>
<h2><?php echo htmlentities($sel_page['menu_name']); ?></h2>
<div class="page-content">
<?php echo strip_tags(nl2br($sel_page['content']), "<b><br><p><a>"); ?> </div>
<?php } else { ?>
<h2>Welcome to My Site</h2>
<p> </p>
<?php } ?>
</td>
</tr>
</table>
<?php include("includes/footer.php"); ?>
pleeeease pleeease pleeease help. i upload the whole www folder and this is what the error said:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in /home/.../public_html/enhu.com/includes/connection.php on line 5
Database connection failed: Access denied for user 'root'@'localhost' (using password: YES)
what possibly have i done? please help me fix.