Jump to content

fatal error pleeeeaaasse help.


enhu

Recommended Posts

 

Warning: require_once(includes/connection.php) [function.require-once]: failed to open stream: No such file or directory in /home/.../public_html/enhu.com/index.php on line 1

 

Fatal error: require_once() [function.require]: Failed opening required 'includes/connection.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/.../public_html/enhu.com/index.php on line 1

 

how must i solve this error?

Link to comment
https://forums.phpfreaks.com/topic/137582-fatal-error-pleeeeaaasse-help/
Share on other sites

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.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.