Einchecken des Online-Codes

This commit is contained in:
2017-05-07 14:37:49 +00:00
parent 9c1d71cea6
commit 85cc95c574
635 changed files with 76260 additions and 0 deletions

19
inhalte/unter/allein.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
$sql = "SELECT * FROM Uns WHERE ID = '6';";
$result = $db->query ( $sql );
$nt = $result->fetch_assoc ();
$title = explode ( '||', $nt['Foto_Layout'] );
$anz_ti = count ( $title );
$texte = explode ( '||', $nt['Text'] );
$anz_te = count ( $texte );
$anz = max ( $anz_ti, $anz_te );
echo "<h1>" . $nt['Titel'] . "</h1>\n";
for ( $i = 0; $i < $anz; $i++ )
{
?>
<h2><?php echo ( isset ( $title[$i] ) ) ? $title[$i] : ""; ?></h2>
<p><?php echo ( isset ( $texte[$i] ) ) ? nl2br ( $texte[$i] ) : ""; ?></p>
<?php
}
?>