Einzelnen Beitrag anzeigen
Alt 27.05.2002, 14:08   #49
creibl
Veteran
 
Registriert seit: 24.04.2002
Beiträge: 278


Standard

// Zeilen pro Seite
$zproseite = 500;

// Zeilenanzahl auslesen
$result=mysql_fetch_row(mysql_query(select count (*) from spalte));
$einträge=$result[0];


if (!$ansicht) {$ansicht=1;}

$start = $zproseite*$ansicht-$zproseite;
$result = mysql_query($sql,$db);
$rows = mysql_num_rows($result);

if ($result) {
$number = mysql_num_rows($result);
echo "<font face='Tahoma'>Es sind $number Datensätze gelesen worden ! </font>";

echo "<font face='Tahoma'>Tontr&aumlgerart : $sp</font>";
if ($number == 0) {
echo "<font face='Tahoma'>
Bitte &aumlndern Sie ihre Suchkriterien";
} else {

echo "<TABLE BORDER=0>";
echo '<TR>
<TD width="3%">Jahr</TD>
<TD width="3%">Wo</TD>
<TD width="3%">Rang</TD>
<TD width="3%">Rel</TD>
<TD width="3%">ES</TD>
<TD width="24%">Künstler</TD>
<TD width="26%">Titel</TD>
<TD width="3%">V1W</TD>
<td width="3%">V2W</TD>
<td width="3%">WW</TD>
<td width="3%">Peak</TD>
<td width="10%">Firma</TD>
<td width="10%">KatalogNr.</TD>
<td width="3%">LA</TD>

</TR>';

while ($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
echo "<TR><TD>";
echo implode("<TD>",$row);
echo "</TR>";
}
echo "</TABLE>";
}
echo "

</p>";
}

if ($ansicht==1) {
$vorherige=" ";
}
else {
$zurück = $ansicht - 1;
$vorherige = "<< vorherige Seite";
}

if ($ansicht==$seitenanzahl) {
$nächste=" ";
}
else{
$weiter = $ansicht + 1;
$nächste="nächste Seite >>";
}

@mysql_close($db);


?>
creibl ist offline   Mit Zitat antworten