• 23-11-2021, 17:38:16
    #1
    Üyeliği durduruldu
    merhaba arkadaşlar durum 1 olarak veritabanına kayıt ettiğimde html kod satırının devre dışı kalmasını istiyorum nasıl yapabilirim?



    <?php
                         $bilgilerimsor = $db->prepare("SELECT * FROM blog where yazi_durum=:durum ORDER BY yazi_id DESC  LIMIT 12");
                          $bilgilerimsor->execute(array(
          'durum' => 1
          )); ?>
     <div class="section-header">
                         <h3 class="section-header-h3 h3 title-active">Spor Haberleri<a href="<?php echo $site; ?>/spor-haberleri" title="Blog" class="all pull-right" target="_blank">Spor Haberleri</a></h3>
                      </div>
  • 23-11-2021, 17:40:45
    #2
    sanırım şöyle bir şey istiyorsunuz;
    <?php  if($bilgilerimsor['durum'] == '0'){ ?>
    [COLOR=#D9DAE9][FONT=consolas]<div class="section-header">[/FONT][/COLOR]
    [COLOR=#D9DAE9][FONT=consolas]                    <h3 class="section-header-h3 h3 title-active">Spor Haberleri<a href="<?php echo $site; ?>/spor-haberleri" title="Blog" class="all pull-right" target="_blank">Spor Haberleri</a></h3>[/FONT][/COLOR]
    [COLOR=#D9DAE9][FONT=consolas]                 </div>[/FONT][/COLOR]
    <?php } ?>
  • 23-11-2021, 17:49:34
    #3
    Üyeliği durduruldu
    Death2All adlı üyeden alıntı: mesajı görüntüle
    sanırım şöyle bir şey istiyorsunuz;
    <?php  if($bilgilerimsor['durum'] == '0'){ ?>
    [COLOR=#D9DAE9][FONT=consolas]<div class="section-header">[/FONT][/COLOR]
    [COLOR=#D9DAE9][FONT=consolas]                    <h3 class="section-header-h3 h3 title-active">Spor Haberleri<a href="<?php echo $site; ?>/spor-haberleri" title="Blog" class="all pull-right" target="_blank">Spor Haberleri</a></h3>[/FONT][/COLOR]
    [COLOR=#D9DAE9][FONT=consolas]                 </div>[/FONT][/COLOR]
    <?php } ?>
    çok teşekkürler hocam başarıyla çalıştı