bau mir zur Zeit eine Website mit PHP und wollte mal Fragen ob man einzelne Zellen wie Frames ansteuern kann durchs includen.
Hab mir da schonmal was gebastelt aber das funktioniert nicht so wie ich will.
Kommt immer nur die erste Zelle und die anderen nicht. Hier mein Code:
Code: Alles auswählen
<html>
<head>
<title>Neue Seite 1</title>
</head>
<body>
<table border="1" width="100%" height="100%">
<tr>
<td>
<?php
if (!isset($taba)) {
$taba = "1.html";
}
if (!isset($cat)) {
include($taba);
} else {
include($cat."/".$taba);
}
?>
</td>
<td>
<?php
if (!isset($tabb)) {
$tabb = "2.html";
}
if (!isset($cat)) {
include($tabb);
} else {
include($cat."/".$tabb);
}?>
</td>
</tr>
<tr>
<td>
<?php
if (!isset($tabc)) {
$tabc = "3.html";
}
if (!isset($cat)) {
include($tabc);
} else {
include($cat."/".$tabc);
}?>
</td>
<td>
<?php
if (!isset($tabd)) {
$tabd = "4.html";
}
if (!isset($cat)) {
include($tabd);
} else {
include($cat."/".$tabd);
}?>
</td>
</tr>
</table>
</body>
</html>