Als nächstes mit Includes:
Index.php
<?php
$host = "localhost";
$user = "xxxxxx";
$pass = "xxxxxxx";
$dbname = "usr_web293_1";
$table = "gb";$dblink = mysql_connect($host,$user,$pass);
if (!$dblink) {
echo "keine Datenbankverbindung möglich...";
}
else
{
include('eintrag.php');
}
?>eintrag.php
<?php
mysql_select_db($table, $dblink);
$alledaten = mysql_query("select * from ".$table."order by eintragsid DESC");
include('head.php');
while($daten = mysql_fetch_array($alledaten)) {
include('kasten.php');
}
include('bottom.php');
mysql_close($dblink);
?>
Vom Hauptscript "Index.php" her ist ja "<?php " noch offen, wenn Du nach eintrag.php springst. Lass in eintrag.php alle <?php und ?> weg. (Natürlich nicht nur das am Ende ... ) ;-)
Gruß aus Petershagen