$user_name = "";
$password = "";
$host = "localhost";
$db_name = "";

$con = mysql_connect($host, $user_name, $password);
mysql_select_db($db_name, $con);

$sql = "select * from veriler";
$result = mysql_query($sql);

if(mysql_num_rows($result)) {
while($row = mysql_fetch_array($result)) {
echo json_encode(array("Ad" => $row["ad"], "Eposta" => $row["eposta"], "Metin" => $row["metin"]));
}
}

?>