Sammeltipps Inhaltsverzeichnis
include('inxs/menu_sammeltipps.inc.php');
echo '';
echo ''; echo ''; if(isset($_GET['id'])) { $id_show=$_GET['id']; $sql="SELECT * FROM tipps WHERE id='$id_show' LIMIT 1"; if (!$mysqli_result = $mysqli->query($sql)) { die('Fehler ' . $mysqli->errno . ': ' . $mysqli->error); } $counter=mysqli_num_rows($mysqli_result); if ($counter > 0) { while ($rows = $mysqli_result->fetch_assoc()) { $datum = $rows['datum']; $headline=$rows['headline']; $text=nl2br($rows['text']); $bild=$rows['bild']; echo '
';
echo '
';
}
}
}
echo '';
$sql="SELECT * FROM tipps ORDER BY headline ASC";
if (!$mysqli_result = $mysqli->query($sql))
{
die('Fehler ' . $mysqli->errno . ': ' . $mysqli->error);
}
$counter_menu=mysqli_num_rows($mysqli_result);
$i=1;
if ($counter_menu > 0)
{
while ($rows = $mysqli_result->fetch_assoc())
{
$id=$rows['id'];
$headline=$rows['headline'];
if ($id<48)
{
echo ''.$headline.'
';
echo '';
if (!empty($bild))
{
echo '';
echo '';
echo '';
echo "
";
}
echo '';
echo format_link($text);
echo '';
echo '
';
}
else
{
echo '';
echo ''.$i.') '.$headline.''.$i.') '.$headline.'';
echo '
';
echo '';
echo '';
echo '
';
}
$i++;
}
}
?>
';
echo ''.$i.') '.$headline.''.$i.') '.$headline.'';
echo '
';
echo '';
echo '