$carpim=1;


while for vs. döngü başlangıcı
{
$sayi= sqldenveriyiçek ;
$carpim=$sayi*$carpim;
}
while for vs. döngü bitişi

echo "sonuc= $carpim";