Korkmaz adlı üyeden alıntı

Demoyuda inceleyin hocam. İlk İnput maç sayısı
http://biletiniz.net/index.php

Ekrana 0 yazdırıyor.


hesapla.php içersine ekleyip ftp atmadınız sanırım? hesapla.php sayfasının içine alttaki kodu yazdınızmı ?

$mac1 = $_POST["1"];
$mac2 = $_POST["2"];
$mac3 = $_POST["3"];
$mac4 = $_POST["4"];
$mac5 = $_POST["5"];
$mac6 = $_POST["6"];
$mac7 = $_POST["7"];
$mac8 = $_POST["8"];
$mac9 = $_POST["9"];
$mac10 = $_POST["10"];
$mac11 = $_POST["11"];
$mac12 = $_POST["12"];
$misli = $_POST["oranbk"];
$macsayisi = $_POST["sayi"];

if($macsayisi == 1 && $mac1>0) {
$oranx = $mac1;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 2 && $mac1>0 && $mac2>0){
$oranx = $mac1 * $mac2;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 3 && $mac1>0 && $mac2>0 && $mac3>0){
$oranx = $mac1 * $mac2 * $mac3;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 4 && $mac1>0 && $mac2>0 && $mac3>0 && $mac4>0){
$oranx = $mac1 * $mac2 * $mac3 * $mac4;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 5 && $mac1>0 && $mac2>0 && $mac3>0 && $mac4>0 && $mac5>0){
$oranx = $mac1 * $mac2 * $mac3 * $mac4 * $mac5;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 6 && $mac1>0 && $mac2>0 && $mac3>0 && $mac4>0 && $mac5>0 && $mac6>0){
$oranx = $mac1 * $mac2 * $mac3 * $mac4 * $mac5 * $mac6;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 7 && $mac2>0 && $mac3>0 && $mac4>0 && $mac5>0 && $mac6>0 && $mac7>0){
$oranx = $mac1 * $mac2 * $mac3 * $mac4 * $mac5 * $mac6 * $mac7;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 8 && $mac2>0 && $mac3>0 && $mac4>0 && $mac5>0 && $mac6>0 && $mac7>0 && $mac8>0){
$oranx = $mac1 * $mac2 * $mac3 * $mac4 * $mac5 * $mac6 * $mac7 * $mac8;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 9 && $mac2>0 && $mac3>0 && $mac4>0 && $mac5>0 && $mac6>0 && $mac7>0 && $mac8>0 && $mac9>0){
$oranx = $mac1 * $mac2 * $mac3 * $mac4 * $mac5 * $mac6 * $mac7 * $mac8 * $mac9;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 10 && $mac2>0 && $mac3>0 && $mac4>0 && $mac5>0 && $mac6>0 && $mac7>0 && $mac8>0 && $mac9>0 && $mac10>0){
$oranx = $mac1 * $mac2 * $mac3 * $mac4 * $mac5 * $mac6 * $mac7 * $mac8 * $mac9 * $mac10;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 11 && $mac2>0 && $mac3>0 && $mac4>0 && $mac5>0 && $mac6>0 && $mac7>0 && $mac8>0 && $mac9>0 && $mac10>0 && $mac11>0){
$oranx = $mac1 * $mac2 * $mac3 * $mac4 * $mac5 * $mac6 * $mac7 * $mac8 * $mac9 * $mac10 * $mac11;
$sonuc = $misli * $oranx;
echo $sonuc;
}else if($macsayisi == 12 && $mac2>0 && $mac3>0 && $mac4>0 && $mac5>0 && $mac6>0 && $mac7>0 && $mac8>0 && $mac9>0 && $mac10>0 && $mac11>0 && $mac12>0){
$oranx = $mac1 * $mac2 * $mac3 * $mac4 * $mac5 * $mac6 * $mac7 * $mac8 * $mac9 * $mac10 * $mac11 * $mac12;
$sonuc = $misli * $oranx;
echo $sonuc;
}else{
echo"Lütfen Maç Oranlarını Giriniz";
}

?>


Ek Olarak: Şuanda düzeldi.