Andavos: include

Beitrag lesen

Hallo,
so geht Include:

Man hat eine Tabelle:
<table>
<tr>
<td>Links</td>
<td>News</td>
</tr>
</table>

Diese möchte man dann per Include aufteilen.

Index.php:
<?php
include("top.php");
include("links.php");
include("news.php");
include("ende.php");
?>

Inhalt top.php:
<table>
<tr>

Inhalt links.php:
<td>Links</td>

Inhalt news.php:
<td>News</td>

Inhalt ende.php:
</tr>
</table>

Wenn man das so aufteilt, dann bekommt man wieder die ganze Tabelle.

Ich hoffe das hilft dir

MFG
Andavos

--
http://www.rpgcommunity.de/clanwissen/index.php Webdesign, PHP, Clan-Aufbau und mehr