$user = $_SESSION['user']; $yazi_id = $_GET['yazi_id']; $sql = " SELECT * FROM yazilar WHERE yazar ='".$user."' and yazi_id ='".$yazi_id."'";