Could someone please tell me whats wrong with this code because I cannot find anything?
<html>
<head>
<title>Meine Seite</title>
</head>
<body>
<h2>Willkommen</h2>
<br />
<?php
define("EZSQL_DB_USER", 'xxxxx_xxxx');
define("EZSQL_DB_PASSWORD", 'xxxxxxx');
define("EZSQL_DB_NAME", 'xxxx_xxxx');
define("EZSQL_DB_HOST", 'localhost');
if (!function_exists('gettext')) {
function _($s) {return $s;}
}
?>
<?php
$mysqlConnection = mysql_connect(EZSQL_DB_HOST, EZSQL_DB_USER, EZSQL_DB_PASSWORD);
if (!$mysqlConnection)
{
echo "<h2>Hallo du!</h2>";
}
?>
</body>
</html>
The result:
Willkommen
Hallo du!"; } ?>
Your help is very much appreciated!
thanks
That shows your php is not running. You have to upload the php file to a webserver Then see from browser. Like
http://localhost/file.php. Not asC:\documents\file.php