PHPYE YENİ BAŞLAYAN BİRİ OLARAK O ÇOK DEĞERLİ VAKTİNİZİ ALARAK BİR SORU SORMAK İSTİYORUM.
YAPMAK İSTEDİĞİM OLAY ŞU. KENDİME GÖRE BİR MAÇ ANALİZ SİSTEMİ. SİSTEM ŞÖYLE ÇALIŞACAK. BİR BAHİS SİTESİNDEN VERİ ÇEKMEM GEREKECEK. BU VERİLER AŞAĞIDAKİ KODDAKİ GİBİ. X MAÇININ 1 0 2 ORANLARI, MAÇ BİTİMİ KAÇ KAÇ BİTTİĞİ İLK YARI MAÇ SONUCU ORANLARI ALT UST ORANLARI VS. LİSTELEME ŞU ŞEKİLDE OLACAK
<form method="post" action="liste.php"> Son 5 Maç :<input type="radio" name="kriter" value="1" /><br> Son 10 Maç :<input type="radio" name="kriter" value="2" /><br> Hepsi :<input type="radio" name="kriter" value="3" checked /><br> <hr> Maç Sonucu 1:<input type="text" name="macsonucub"/><br> Maç Sonucu X:<input type="text" name="macsonucux"/><br> Maç Sonucu 2:<input type="text" name="macsonucui"/><br> <input type="submit" Value="Ara"/><br> </form>
if(@$_POST['kriter']=="1"){ if(@$_POST['macsonucub']!=""){ $sql=mysql_query("select * from sonuclar where bir='$_POST[macsonucub]' order by id desc limit 0,5"); } if(@$_POST['macsonucux']!=""){ $sql=mysql_query("select * from sonuclar where bir='$_POST[macsonucub]' and x='$_POST[macsonucux]' order by id desc limit 0,5"); } if(@$_POST['macsonucui']!=""){ $sql=mysql_query("select * from sonuclar where iki='$_POST[macsonucui]' and bir='$_POST[macsonucub]' order by id desc limit 0,5"); } if(@$_POST['macsonucub']=="" or @$_POST['macsonucub']=="" or @$_POST['macsonucub']=="") { $sql=mysql_query("select * from sonuclar order by id desc limit 0,5"); } }else if(@$_POST['kriter']=="2"){ if(@$_POST['macsonucub']!=""){ $sql=mysql_query("select * from sonuclar where bir='$_POST[macsonucub]' order by id desc limit 0,10"); } if(@$_POST['macsonucux']!=""){ $sql=mysql_query("select * from sonuclar where bir='$_POST[macsonucub]' and x='$_POST[macsonucux]' order by id desc limit 0,10"); } if(@$_POST['macsonucui']!=""){ $sql=mysql_query("select * from sonuclar where bir='$_POST[macsonucub]' and x='$_POST[macsonucux]' and iki='$_POST[macsonucui]' order by id desc limit 0,10"); } if(@$_POST['macsonucub']=="" or @$_POST['macsonucub']=="" or @$_POST['macsonucub']=="") { $sql=mysql_query("select * from sonuclar order by id desc limit 0,10"); } }else if(@$_POST['kriter']=="3"){ if(@$_POST['macsonucub']!=""){ $sql=mysql_query("select * from sonuclar where bir='$_POST[macsonucub]'"); } if(@$_POST['macsonucux']!=""){ $sql=mysql_query("select * from sonuclar where bir='$_POST[macsonucub]' and x='$_POST[macsonucux]'"); } if(@$_POST['macsonucui']!=""){ $sql=mysql_query("select * from sonuclar where bir='$_POST[macsonucub]' and x='$_POST[macsonucux]' and iki='$_POST[macsonucui]'"); } if(@$_POST['macsonucub']=="" or @$_POST['macsonucub']=="" or @$_POST['macsonucub']=="") { $sql=mysql_query("select * from sonuclar order by tarih desc"); } }else{ $sql=mysql_query("select * from sonuclar order by tarih desc"); } while($yaz=mysql_fetch_assoc($sql)){ ?> <tr> <td><?php echo $yaz['tarih']; ?></td> <td><?php echo $yaz['ligkodu']; ?></td> <td><?php echo $yaz['takimlar']; ?></td> <td><?php echo $yaz['iy']; ?></td> <td><?php echo $yaz['ms']; ?></td> <td><b><?php echo $yaz['bir']; ?></b></td> <td><b><?php echo $yaz['x']; ?></b></td> <td><b><?php echo $yaz['iki']; ?></b></td> <td><?php echo $yaz['iybir']; ?></td> <td><?php echo $yaz['iysifir']; ?></td> <td><?php echo $yaz['iyiki']; ?></td> <td><?php echo $yaz['hbir']; ?></td> <td><?php echo $yaz['hsifir']; ?></td> <td><?php echo $yaz['hiki']; ?></td> <td><?php echo $yaz['birsifirc']; ?></td> <td><?php echo $yaz['birikic']; ?></td> <td><?php echo $yaz['sifirikic']; ?></td> <td><?php echo $yaz['alt']; ?></td> <td><?php echo $yaz['ust']; ?></td> <td><?php echo $yaz['var']; ?></td> <td><?php echo $yaz['yok']; ?></td> </tr> <?php } ?> </tbody> </table> </body> </html>
TAKILDIĞIM TEKBİR NOKTA VAR. X.COM SİTESİNDEKİ İSTEDİĞİM BU VERİLERİ NASIL ÇEKECEĞİM. ÇOK ARAŞTIRMA YAPTIM SOMUT BİR VERİ BULAMADIM. YENİ OLDUĞUM İÇİNDE ZORLANIYORUM. YARDIM ARIYORUM. HERTÜRLÜ FİKİRLERE AÇIĞIM. DAHA YARATICI OLMAM İÇİN YARDIMLARINIZA İHTİYACIM VAR.
yapmak istediğin şey x.com gibi bir siteden veri çekip oranları düşürüp yayınlayıp x.com sitesi üzerinden bahis oynatıp komisyonunu almmak mı yoksa ?
hayır. tam olarak şu. diyelimki bugunki x - x maçının oranları şöyle = 2.00 3.10 2.20 daha önceden x.com sitesinden çektiğim verilerden bu oranları arama yaptıgımda, bu oranlarla oynanmış maçların ilk yarı ve maç sonuçlarını getirecek. küçük bir istatistik oyunu sadece. hiçbir şekilde yayınlanmayacak.