Röportajlar..
$sql = "select * from ecz_roportaj order by id desc";
$result = $conn->query($sql);
while($newarray = $result->fetch_assoc()){
$id = $newarray['id'];
$baslik = $newarray['baslik'];
$link = $newarray['link'];
$link = explode("/", $link);
$link = $link[sizeof($link)-1];
$sql2 = "select ecz_haber.id as 'ecz_haber1', ecz_haber.* from ecz_haber where p = $link";
$result2 = $conn->query($sql2);
while($newarray2 = $result2->fetch_assoc()){
$link2 = $newarray2['resim'];
echo '
';
}
}
?>