<?php
include('./baglan.php');
if (!empty($_GET['thread_id'])){
$verisor=$db->prepare("select * from xf_thread WHERE thread_id=".(int)$_GET['thread_id']." ORDER BY thread_id DESC LIMIT 1") ;
$verisor->execute();
while($vericek=$verisor->fetch(PDO::FETCH_ASSOC)) {
$thread_id = $vericek['thread_id'];
echo $thread_id;
}
}
?>