Okay, ich bin mir jetzt 100% sicher, dass es nicht an EasyHP liegt.
Code: Alles auswählen
<?php
include "config.php";
// Try to connect to the database
$connection = @mysql_connect($server, $username, $password);
// Select database
@mysql_select_db($name);
// Query to test connection
$query[test] = @mysql_query("SELECT default_style FROM cms_config");
if (!$query[test]) {
echo "<html>";
echo "<head><title>General Error</title></head>";
echo "<b>General Error</b><br></font>";
echo "Sorry, could not connect to the database. Please check your <i>config.php</i><br>";
echo "<b>SQL ERROR:</b> " . mysql_error();
echo "</body>";
echo "</html>";
exit();
}
else {
echo "Funktioniert";
}
?>
Damit sollte doch "Funktioniert" erscheinen. Doch:
Code: Alles auswählen
General Error
Sorry, could not connect to the database. Please check your config.php
SQL ERROR: Table 'Matthias.cms_config' doesn't exist
Wie ist das möglich? Die config.php muss ja stimmen, da er sonst nicht die Tabellen angelegt hat.
Ist mein Code doch falsch? Was kann man da denn falsch machen?