Şimdi Ara

X.COM SİTESİNDEN VERİ ÇEKME

Daha Fazla
Bu Konudaki Kullanıcılar: Daha Az
2 Misafir (1 Mobil) - 1 Masaüstü1 Mobil
5 sn
3
Cevap
0
Favori
1.635
Tıklama
Daha Fazla
İstatistik
  • Konu İstatistikleri Yükleniyor
0 oy
Öne Çıkar
Sayfa: 1
Giriş
Mesaj
  • ARKADAŞLAR MERHABA.

    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>

    <table>
    <thead>
    <th>Tarih</th>
    <th>Lig Kodu</th>
    <th>Takımlar</th>
    <th>İY</th>
    <th>MS</th>
    <th>1</th>
    <th>X</th>
    <th>2</th>
    <th>İY1</th>
    <th>İYX</th>
    <th>İY2</th>
    <th>H1</th>
    <th>Hx</th>
    <th>H2</th>
    <th>1-0-C</th>
    <th>1-2-C</th>
    <th>0-2-C</th>
    <th>Alt</th>
    <th>Üst</th>
    <th>Var</th>
    <th>Yok</th>
    </thead>
    <tbody>
    <?php
    mysql_connect("localhost","root","");
    mysql_select_db("iddaa");

    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>


    VERİ TABANINA KAYIT GİRİŞİMİ ŞU ŞEKİLDE

    <html> 
    <body>
    <form method="post" action="kaydet.php">
    Tarih:<input type="text" name="tarih"/><br>
    Lig Kodu:<input type="text" name="ligkodu"/><br>
    Takımlar:<input type="text" name="takimlar"/><br>
    </hr>
    İY:<input type="text" name="iy"/><br>
    MS:<input type="text" name="ms"/><br>
    1:<input type="text" name="bir"/><br>
    X:<input type="text" name="x"/><br>
    2:<input type="text" name="iki"/><br>
    İY1:<input type="text" name="iybir"/><br>
    İY0:<input type="text" name="iysifir"/><br>
    İY2:<input type="text" name="iyiki"/><br>
    H1:<input type="text" name="hbir"/><br>
    H0:<input type="text" name="hsifir"/><br>
    H2:<input type="text" name="hiki"/><br>
    10Ç:<input type="text" name="birsifirc"/><br>
    12Ç:<input type="text" name="birikic"/><br>
    02Ç:<input type="text" name="sifirikic"/><br>
    A:<input type="text" name="alt"/><br>
    Ü:<input type="text" name="ust"/><br>
    Var:<input type="text" name="var"/><br>
    Yok:<input type="text" name="yok"/><br>
    <input type="submit" value="Kaydet">
    </form>
    </body>
    </html>


    VE SON OLARAK ÇEKİLEN VERİLERİN VERİTABANINA KAYDI

    <?php 
    mysql_connect("localhost","root","");
    mysql_select_db("iddaa");

    $tarih=$_POST['tarih'];
    $ligkodu=$_POST['ligkodu'];
    $takimlar=$_POST['takimlar'];
    $iy=$_POST['iy'];
    $ms=$_POST['ms'];
    $bir=$_POST['bir'];
    $x=$_POST['x'];
    $iki=$_POST['iki'];
    $iybir=$_POST['iybir'];
    $iysifir=$_POST['iysifir'];
    $iyiki=$_POST['iyiki'];
    $hbir=$_POST['hbir'];
    $hsifir=$_POST['hsifir'];
    $hiki=$_POST['hiki'];
    $birsifirc=$_POST['birsifirc'];
    $birikic=$_POST['birikic'];
    $sifirikic=$_POST['sifirikic'];
    $alt=$_POST['alt'];
    $ust=$_POST['ust'];
    $var=$_POST['var'];
    $yok=$_POST['yok'];

    $s=mysql_query("insert into sonuclar (tarih,ligkodu,takimlar,iy,ms,bir,x,iki,iybir,iysifir,iyiki,hbir,hsifir,hiki,birsifirc,birikic,sifirikic,alt,ust,var,yok) Values ('$tarih','$ligkodu','$takimlar','$iy','$ms','$bir','$x','$iki','$iybir','$iysifir','$iyiki','$hbir','$hsifir','$hiki','$birsifirc','$birikic','$sifirikic','$alt','$ust','$var','$yok')");
    if($s){
    echo "<script>alert('Tamam');</script>";
    }else
    {
    echo "asdfasdf";
    }
    ?>



    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.
  • Yapay Zeka’dan İlgili Konular
    Daha Fazla Göster
    
Sayfa: 1
- x
Bildirim
mesajınız kopyalandı (ctrl+v) yapıştırmak istediğiniz yere yapıştırabilirsiniz.