Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please Help


oscom777

Recommended Posts

Two days ago, my site was fine, I changed nothing to the ftp, all files were as is.

 

Then I wakeup this morning I get this message

 

Warning: mysql_connect(): Can't connect to MySQL server on 'mysql05.powweb.com' (60) in /****/****/****/htdocs/catalog/includes/functions/database.php on line 19

 

Unable to connect to database server!

 

Got ahold of my host to fix the database server...I guess they did. But when it came back on and I refereshed the browser I now have a broken comment or something,

 

 

#########Very top of front page on WebSite##########

 

{ $string[$key] = tep_db_prepare_input($value); } return $string; } else { return $string; } } ?>

#####################################################

 

 

and I think its comming from database.php file beacuse of

 

 

#########Very Bottom of database.php#################

 

 

function tep_db_prepare_input($string) {

if (is_string($string)) {

return trim(stripslashes($string));

} elseif (is_array($string)) {

reset($string);

while (list($key, $value) = each($string)) {

$string[$key] = tep_db_prepare_input($value);

}

return $string;

} else {

return $string;

}

}

?>

 

#######################################################

 

 

CAn someone tell me whats wrong?

Link to comment
Share on other sites

1) Find out if powweb JUST upgrqaded their version of MySQL.

2) Have you tried to reload a new copy of the database.php file from the original download package?

"Aliiiiive, it's alive, it's ALIIIIIIIIIIIIIVE!!!"

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...