PHP Code:
<title>
<?php
include('database.php');
$title = "SELECT title FROM index";
$title2 = mysql_query($title) or die ("Anfrage nicht erfolgreich.");
$row = mysql_fetch_object($title2);
echo $row->title;
?>
</title>
PHP Code:
<?php
$mysqlhost="localhost";
$mysqluser="*******";
$mysqlpass"****";
$mysqldbase="******";
$connection=mysql_connect($mysqlhost, $mysqluser, $mysqlpass) or die
("Verbindung nicht moeglich.");
mysql_select_db($mysqldbase, $connection) or die("Datenbank konnte nicht gewaehlt werden.");
?>
Geht nicht.