ekiket php javascript
<script>
$(document).ready(function(){
$(document).on('click','.show_more',function(){
var id = $(this).attr('id');
$('.show_more').hide();
$('.loding').show();
$.ajax({
type:'POST',
url:'tags.php',
data:'id='+id,
success:function(html){
$('#show_more_main'+id).remove();
$('.postList').append(html);
}
});
});
});
</script>
tags php
if(!empty($_POST["id"])){
$id=$_POST["id"];
require_once("sistem/ayar.php");
$link = g("link");
$query = pre("select * from sorular
inner join uyeler on uyeler.uye_id = sorular.soru_ekleyen where soru_etiket like '%".$link."%' soru_id<$id order by soru_id desc
limit 3
");
$query->execute();
$liste = all($query);
$kontrol = $query->rowCount();
if($kontrol){
foreach($liste as $row){
$yorum = pre("select * from yorumlar where yorum_soru_id=?");
$yorum->execute(array($row["soru_id"]));
fetch($yorum);
$x = $yorum->rowcount();
$row1= $row["soru_id"];
?>
}
} ?>
Show more
}else{
echo "bitti";
}
?>