Bir konuda desteğinize ihtiyaç duymaktayım. Şimdi benim elimde aşağıdaki gibi bir kod sütunu var.
Ben bu sütundaki verilerin (tablo) eğer kullanıcı yetki=2 ve yetki=3 ise gösterilmesini istiyorum. (yetki=1 göremesin)
ÖZET
Gold Üye tahmin tablosundaki verileri eğer kullanıcı gold üye ise görebilsin.
Anlayan kişilerin desteklerini rica ediyorum.
Şimdiden teşekkürler..
PHP SÜTUN
<div class="col-md-8">
<h3> Tahmin Kuponlarımız (<font color="#8f6a27"><b><u>Gold</u></b> Üye</font>)</h3>
<table class="table table-bordered text-center">
<tr>
<th class="text-center">Kupon Adı</th>
<th class="text-center">Tarih</th>
<th class="text-center">Toplam Oran</th>
<th class="text-center" colspan="2">Sonuç</th>
</tr>
<?php $kuponlar = new sorgu;
$kuponlar->select("*", "coupon","kid=0","sonuc=3");
while($kuponlar->verioku()){ ?>
<tr>
<td class="text-center"><a href="kupon/<?php echo $kuponlar->veri->link; ?>" style="color:#D80B43;"><?php echo $kuponlar->veri->adi; ?></a></td>
<td class="text-center"><?php echo $kuponlar->veri->tarih; ?></td>
<td class="text-center">
<?php $a = 0; $oran = new sorgu; $k_id = $kuponlar->veri->id; $oran->select("*","matches","kid=$k_id"); while($oran->verioku()){
$a = $a+ floatval($oran->veri->oran);
} echo $a; ?>
</td>
<td class="text-center" colspan="2"><?php if($kuponlar->veri->sonuc==3){ echo '<font color="#8f6a27">Sonuçlanmadı</font>'; } ?></td>
</tr>
<?php } ?>
</table>
<p>*NOT: Bu tahminlerimizi görebilmek için "<b>Gold Üye</b>" olmalısınız.</p>
</div> <tbody>
<?php $users->select("*","users","onay=1"); while($users->verioku()){ ?>
<tr>
<td><?php echo $users->veri->id; ?></td>
<td><?php echo $users->veri->adsoyad; ?></td>
<td><?php echo $users->veri->email; ?></td>
<td><?php if($users->veri->yetki==1){ echo 'Normal Üye'; }elseif($users->veri->yetki==2){ echo 'Gold Üye'; }elseif($users->veri->yetki==3){ echo 'Admin'; }; ?></td>
<td><?php echo ifo::timeTR($users->veri->tarih); ?></td>
<td>
<a href="pages/edituser.php?id=<?php echo $users->veri->id; ?>" class="btn btn-xs btn-primary"><i class="icon-edit"></i></a>
<a href="users.php?delete=<?php echo $users->veri->id;?>" class="btn btn-xs btn-danger"><i class="icon-remove"></i></a>
</td>
</tr>
<?php } ?>
</tbody>