Parse error: parse error, unexpected T_LOGICAL_OR in C:\Program Files\xampp\htdocs\boerner2\system\connect.inc.php on line 7
Jan
Parse error: parse error, unexpected T_LOGICAL_OR in C:\Program Files\xampp\htdocs\boerner2\system\connect.inc.php on line 7
Wiedmann wrote:There is an error in your script....
Dear Mr. Douma,
I took a look at your panel and at the boerner Website: It seems to me
that you mixed username and database name: In the cPanel, the following
code is recommended to connect to the Database:
/ $dbh=mysql_connect ("localhost", "janzeros_jan", "<PASSWORD HERE>")=> what password? or
die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("janzeros_Boerner");
/but the error message reads:
mysql_connect(): Access denied for user: 'janzeros_Boerner@localhost'
(Using password: YEs
The users name is janzeros_jan, the DB-name is janzeros_Boerner. You try
to connect to the database as a user with the database name. To me, this
seems to be the root of all the problems. Use the recommended code above
and it should work.
Wiedmann wrote:This is a mail and not a script
<?php
//Dynamische Webseiten mit PHP - Echt einfach, Franzis Verlag
//Jochen Franke 2001-2004
//Diese Datei enthält die Anweisungen zum Aufnehemn einer Verbindung zur Datenbank
//Verbindung zur Datenbank aufnehmen
$db = mysql_connect("localhost","janzeros_Boerner","janzeros_jan") or die ("Verbindung fehlgeschlagen");
mysql_select_db("janzeros_Boerner",$db);
?>
<?php
//Dynamische Webseiten mit PHP - Echt einfach, Franzis Verlag
//Jochen Franke 2001-2004
//Diese Datei enthält die Anweisungen zum Aufnehemn einer Verbindung zur Datenbank
//Verbindung zur Datenbank aufnehmen
$db = mysql_connect("localhost","janzeros_Boerner","janzeros_jan") or die ("Verbindung fehlgeschlagen");
mysql_select_db("janzeros_Boerner",$db);
?>
Parse error: parse error, unexpected T_LOGICAL_OR in C:\Program Files\xampp\htdocs\boerner2\system\connect.inc.php on line 7
Maybe you have an error in the mainfile, because you include this code
Users browsing this forum: No registered users and 76 guests