0"; $order="topten, name"; }else{ $selection = "untergruppe = '$untergruppe'"; $order="datum"; } if ($select){ //Query zusammensetzen $query = "SELECT * FROM webshop WHERE $selection ORDER BY $order DESC"; $result=mysql_query("$query"); if ($result) { if (mysql_num_rows($result) > 0) { while ($row=mysql_fetch_array($result)) { $i = $row[0]; if ($zaehler=="0"){ echo ""; $zaehler="1"; } else { echo ""; $zaehler="0"; } $javavar++; } } mysql_close ($conn); } } echo "

bild

     

titel / beschreib

 

preis / warenkorb

  "; if ($row[9]=="1"){ echo ""; }else{ echo " "; } echo "  

$row[2]
$row[3]

 

preis

$row[7].-

details

 

bestellmenge

  "; if ($row[9]=="1"){ echo ""; }else{ echo " "; } echo "  

$row[2]
$row[3]

 

preis

$row[7].-

details

 

bestellmenge