$data= $baglan->prepare("SELECT * FROM genel1"); $data->execute(); $out= $data->fetchALL(PDO::FETCH_ASSOC); print_r($out);