mhh also es kommt wenn ich alles in der db_connect.php
änder auf meine beispiel daten zum testen dann kommt
----------------------------------------------------------------------------------------
2.Also ich habe die Datenbank "logd" erstellt und nun ??
Kann mir das jemand mit einfachen worten zuerklären danke mfg Dr.Leiche
----------------------------------------------------------------------------------------
Es scheint einen Fehler in Ihrer MySQL-Abfrage zu geben. Die MySQL-Fehlerausgabe, falls vorhanden, kann Ihnen auch bei der Fehleranalyse helfen.
ERROR: Unbekannte Interpunktion @ 1
STR: <?
SQL: <?php
$DB_USER="root";
SQL-Befehl:
MySQL meldet:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<?php
$DB_USER="root"' at line 1
-------------------------------------------------------------------------------------------
In den Sql ding habe ich das hier einfügen wollen
<?php
$DB_USER="root"; //Database Username
$DB_PASS="6666"; //Database Password
$DB_HOST="Localhost"; //Database Hostname
$DB_NAME="logd"; //Database Databasename
if ($DB_USER.$DB_PASS.$DB_HOST.$DB_NAME == ""){
echo "You must edit the dbconnect.php file to set it up for your database.";
}
?>
=====================================================================
edit:Also ich habe probiert und das mal eingegeben
http://localhost/logd/index.php eingebe kommt
da kommt :
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in C:\wamp\www\logd\dbwrapper.php on line 112
Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in C:\wamp\www\logd\dbwrapper.php on line 73
^^danke für eure hilfe