Evet veritabanından çekiyor. Tam sayfa çok uzunda benim işimin olduğu kısım;

<?php

require_once('db.php');

$s=mysql_fetch_array(mysql_query("Select * from genel where id=1"));
$zid = htmlspecialchars($_GET['id']);
$f=mysql_fetch_array(mysql_query("Select * from icerik where id = '$zid'"));
$ids=$f[kategori];
$c=mysql_fetch_array(mysql_query("Select * from katvid where id = '$ids'"));

$to = $f['baslik'];


//User info (DO NOT EDIT!)
$name = stripslashes($_POST['name']); //sender's name
$email = stripslashes($_POST['email']); //sender's email
$website = stripslashes($_POST['website']); //sender's website

//The subject
$subject  = "yurt-rehberi İletişim Formu] "; //The default subject. Will appear by default in all messages. Change this if you want.
$subject .= stripslashes($_POST['subject']); // the subject


//The message you will receive in your mailbox
//Each parts are commented to help you understand what it does exaclty.
//YOU DON'T NEED TO EDIT IT BELOW BUT IF YOU DO, DO IT WITH CAUTION!
$msg  = "Gnderen : $name \r\n";  //add sender's name to the message
$msg .= "E-Posta : $email \r\n";  //add sender's email to the message
$msg .= "Konu : $subject \r\n\n"; //add subject to the message (optional! It will be displayed in the header anyway)
$msg .= "---Mesaj--- \r\n".stripslashes($_POST['message'])."\r\n\n";  //the message itself
$msg .= "Yurt Adı: BURAYA \r\n";  //the message itself

//Extras: User info (Optional!)
//Delete this part if you don't need it
//Display user information such as Ip address and browsers information...
$msg .= "---Kullanıcı Bilgileri--- \r\n"; //Title
$msg .= "IP NUMARASI: ".$_SERVER["REMOTE_ADDR"]."\r\n"; //Sender's IP
$msg .= "TARAYICI BILGISI : ".$_SERVER["HTTP_USER_AGENT"]."\r\n"; //User agent
$msg .= "Siteye nerden geldi : ".$_SERVER["HTTP_REFERER"]; //Referrer
// END Extras
?>