Byvolkan adlı üyeden alıntı: mesajı görüntüle
$i = 0;

foreach ($query as $row) {
      $ids=$row['id'];
      $bol = explode(".",$row["fotograf_adi"]);
      $uzanti = $bol[1];
      if($uzanti != ""){
       $cikti .= '
        
            <div class ="col-md-2" style="margin-bottom:16px">
        <br>
            
          <td>Mark</td>
          <td><img src="' . $yol . $row['fotograf_adi'] . '" style="border:5px gray solid; border-radius:20px; width:200px; height:200px;" width="70px" height="70px"></td>
          <td>
          <form action="" method="POST">
          <textarea name="aciklama" class="form-control" rows="5" id="comment" style="max-width:100%;">'.$row['foto_aciklama'].'
          </textarea>
          <input type="hidden"  name="submit"/>
          <input type="hidden" name="id" value="'. $ids.'">
          
          </td>
          <td><button type="xxx" class="btn btn-info"> Kaydet </button></td>
          <td><button type="xxx" class="btn btn-danger" '.((count($query)-1 === $i) ? 'disabled': null).'> Sil </button></td> <br/>
          </form>
          </div>
         ';
    
      }

    $i++;
        
}
Çok teşekkür ederim hocam.