prepare("select * from `tbl_gallery` where `delete_flag` = 0 and `id` =".$id); $gallery -> execute(); $galleryRow = $gallery -> fetch(PDO::FETCH_ASSOC); ?> <?php echo $galleryRow['title']; ?>|گروه کارآفرینان استاد
<?php echo $galleryRow['title']; ?>
prepare("select * from `tbl_gallery_image` where `delete_flag` = 0 and `gallery_id` = ".$id." order by `id` "); $gallery2 -> execute(); if($gallery2 -> rowCount() > 0){ while($galleryRows2 = $gallery2 -> fetch(PDO::FETCH_ASSOC)){ ?>
<?php echo $galleryRow['title']; ?>