Merhaba arkadaşlar elimde bir script var ben scripti kendi isteğim dogrultusunda değiştirmeye çalışıyorum ama php bilgim yeterli olmadığından basit işlemleride yapamıyorum şimdi yardımcı olursanız sevinirim.
yapmak istediğim şey şöyle şimdi script bahis tahmin scripti admin panelinde lig kuruosun sonra lige takım ekliyorsun ben lig yerini turnuvalar olarak takım ekleme yerine sadece embed kod yapıştırmak istiyorum.
Örnek olarak script bu
http://www.proje3x.com/demo/3x-Canli...uandurumu.html
burdaki puan durumu yerine ben turnuvaları koyucam ok tuşunuda basıldımı eklediğim embed kod gelmesini istiyorum
Takım Ekleme phpsi
<title>Takım Ekle</title> <div class="center_content">
<div id="right_wrap">
<div id="right_content">
<h2>Takım Ekleme</h2>
<?php
if($_POST) {
$takimadi=strip_tags($_POST['takimadi']);
$ligsec=$_POST['ligsec'];
$degersiz="0";
if(mysql_num_rows(mysql_query("select * from takimlar where `lig`='$ligsec' and `takimadi`='$takimadi'"))){
echo "eklenen takım seçtiğiniz ligde mevcut.";
}
else {
$giris=mysql_query("insert into takimlar (takimadi,lig,oynadigi,galibiyet,beraberlik,malubiyet,attigi,yedigi,averaj,puan) values ('$takimadi','$ligsec','$degersiz','$degersiz','$degersiz','$degersiz','$degersiz','$degersiz','$degersiz','$degersiz')");
}
if($giris) { ?>
<div id="positive">
<table width="450" cellpadding="0" cellspacing="12">
<tr>
<td width="52"><div align="center"><img src="images/tick.png"></div></td>
<td width="388" class="bodytext style3"><strong>Tebrikler!</strong> <?=$takimadi?> Eklendi.<br /></td>
</tr>
</table>
</div>
<?php
} else { ?>
<div id="negative">
<table width="450" cellpadding="0" cellspacing="12">
<tr>
<td width="52"><div align="center"><img src="images/negative.png" alt="negative" width="18" height="18" /></div></td>
<td width="388" class="bodytext style4"><strong>Hata!</strong> Sorun oluştu. Lütfen tekrar deneyiniz.</td>
</tr>
</table>
</div>
<?php
}
}
?>
<div class="tabcontent">
<form method="post" action="#">
<h3>Lig Seçiniz:</h3>
<select name="ligsec">
<?php
$sorgu=mysql_query("select * from lig order by id desc");
while($c=mysql_fetch_assoc($sorgu)){
echo'<option value="'.$c['id'].'">'.$c["ligad"].'</option>';
}
?>
</select>
<h3>Takım Adı Giriniz:</h3>
<input name="takimadi" value="" type="text" class="fields" size="18" /> <input style="font-size:20px;" type="submit" value="Gönder" />
<br />
</form>
</div>
</div>
</div>
<?php }
else {
?>
<div class="center_content">
<div id="right_wrap">
<div id="right_content">
<h2>Yetkisiz Giriş</h2>
<div class="tabcontent">
<h3>Bu sayfaya girme yetkiniz yok</h3>
</div>
</div>
</div>
<?php
}
?>Buda Sonuç sayfası
<title>Puan Durumu ve Fikstür</title>
<div class="center_content">
<div id="right_wrap">
<div id="right_content">
<h2>Puan Durumu</h2>
<div class="tabcontent">
<form name="" method="post" action="#">
<select name="ligsec">
<?php
$sorgu=mysql_query("select * from lig order by id desc");
while($c=mysql_fetch_assoc($sorgu)){
echo'<option value="'.$c['id'].'">'.$c["ligad"].'</option>';
}
?>
</select>
<input type="submit" value="ok" name="liglig">
</form>
<br />
<?php
if($_POST['liglig']) {
$ligsec=$_POST['ligsec'];
?>
<h2>Detaylı Puan Durumu </h2>
<table id="rounded-corner">
<thead>
<tr>
<th width="3%"></th>
<th width="32%">Takım</th>
<th width="7%">O</th>
<th width="7%">G</th>
<th width="7%">B</th>
<th width="8%">M</th>
<th width="7%">A</th>
<th width="7%">Y</th>
<th width="9%">AV</th>
<th width="13%">Puan</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="12"> O: Oynadığı Maç Sayısı G: Galibiyet Sayısı B: Beraberlik Sayısı M: Mağlubiyet Sayısı A: Attığı Y: Yediği AV: Averaj P: Puan </td>
</tr>
</tfoot>
<tbody>
<?php
$satirno=1;
$puancek=mysql_query("select * from takimlar where lig='$ligsec' order by puan desc,averaj desc");
while($sistem=mysql_fetch_object($puancek)) {
if($i % 2 == 0){ $renk = "#fcfdfe"; } else { $renk = "#f4f9fd"; }
echo "<tr class=even style='background:".$renk."'>";
?>
<td><?php echo $satirno; $satirno ++;?></td>
<td><?=$sistem->takimadi?></td>
<td><?=$sistem->oynadigi?></td>
<td><?=$sistem->galibiyet?></td>
<td><?=$sistem->beraberlik?></td>
<td><?=$sistem->malubiyet?></td>
<td><?=$sistem->attigi?></td>
<td><?=$sistem->yedigi?></td>
<td><?=$sistem->averaj?></td>
<td><b><?=$sistem->puan?></b></td>
</tr>
<?php $i++; } ?>
</tbody>
</table>
<br>
<?php
$fixin=mysql_query("select * from fikstur where lig='$ligsec' group by hafta desc");
$satir=mysql_num_rows($fixin);
//echo "".$satir."<br>";
for ($dsx = 1; $dsx <= $satir ; $dsx++ ) {
?>
<div class="fixturgecmis">
<h2><?=$dsx?>.Hafta</h2>
<table border="0" id="rounded-corner">
<?php
$fixtur=mysql_query("select * from fikstur where lig='$ligsec' and hafta='$dsx' order by id desc");
while($dmt=mysql_fetch_object($fixtur)) {
?>
<tr>
<td align="left"><?=$dmt->evsahibitakim?></td><td align="center"><?php if(empty($dmt->eskor) or $dmt->eskor=="0") { echo "0"; } else { echo $dmt->eskor; }?>-<?php if(empty($dmt->dskor) or $dmt->dskor=="0") { echo "0"; } else { echo $dmt->dskor; } ?></td><td align="right"><?=$dmt->deplasmantakim?></td>
</tr>
<?php
}
?>
</table>
</div>
<?php } ?>
<?php
}
?>
</div>
</div>
</div>tek istediğim embed kodu eklemek ve sonuctada o embed kodu görmek zor olmasa gerek şimdiden teşekkürler