Hallo Leute,
sicher etwas ganz Simples, aber ich komme nicht weiter... Ich möchte den Wert meines Warenbestandes ausgeben, aber irgendwie funzt es nicht... :-(
	
	
	
		
Schonmal vielen Dank!
				
			sicher etwas ganz Simples, aber ich komme nicht weiter... Ich möchte den Wert meines Warenbestandes ausgeben, aber irgendwie funzt es nicht... :-(
		PHP:
	
	$sql = "SELECT products_id, products_model,  products_quantity , products_price FROM xt_products WHERE products_quantity < 999 ORDER by products_model ASC";
            
$adressen_query = mysql_query($sql) or die("Anfrage nicht erfolgreich");
$anzahl = mysql_num_rows($adressen_query);
echo "Anzahl der Artikel: $anzahl";
?>
     
<strong>
<?php
$wert = mysql_query("SELECT SUM (products_quantity * products_price) FROM xt_products WHERE products_quantity < 999");
echo "Warenbestand: $wert EUR";
?>
</strong>Schonmal vielen Dank!
 
	