mediamacher
Mitglied
Wie kann ich eine Ausgabe eines Ergebnisses aus meiner Datenbank hinsichtlich der Wortzahl begrenzen.?
Bsp:
VW GTI Sondermodell Rabbit Toptuning 12000 EUR
VW GTI Sondermodell Ra... 12000 EUR
Bsp:
VW GTI Sondermodell Rabbit Toptuning 12000 EUR
VW GTI Sondermodell Ra... 12000 EUR
PHP:
$qra = "SELECT id,marke,typ,preis from $atable ORDER BY id DESC LIMIT $anzahl";
$result = mysql_query($qra,$conn);
echo mysql_error($conn);
if ($result <> 0)
{
$foundentry = mysql_num_rows($result);
}
else
{
Echo "<p> Fehler beim Abfragen der Datenbank. </p>";
}
if ($foundentry == 0)
{
include("noads.htm"); // Anzeigen, dass nichts gefunden wurde.
}
else
{
get_field_values($markeval,"marke",$mtable);
echo '
<table width="'.$tblheight.'" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="'.$mencol.'">
<td height="18" width="'.$perc1.'%"><b><font color="#FFFFFF">'.$row1.'</font></b></td>
<td height="18" width="'.$perc2.'%"><b><font color="#FFFFFF">'.$row2.'</font></b></td>
<td height="18" width="'.$perc3.'%"><b><font color="#FFFFFF">'.$row3.'</font></b></td>
</tr>';