Einchecken des Online-Codes
This commit is contained in:
19
inhalte/unter/allein.php
Normal file
19
inhalte/unter/allein.php
Normal 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
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user