• 23-10-2009, 19:17:49
    #10
    Haha bende kafa yormaya çalışıyorum kolay gelsin.
  • 23-10-2009, 22:48:22
    #11
    <?php
    require_once('db.php');
    $s=mysql_fetch_array(mysql_query("Select * from genel where id=1"));
    $zid = htmlspecialchars($_GET['id']);
    $code=mysql_query("Select kategori,baslik from icerik where id = '$zid'"));
    while(list($kategori,$baslik)=mysql_fetch_array($code)) {
    $ids=$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
    }
    ?>
    baslik için $baslik kategori için $kategori değişkenlerini kullanabilirsin acele ile yazdım umarım hata yoktur
  • 24-10-2009, 01:50:12
    #12
    Konudışı: Mysql'in "Join" komutlarına bir göz atmanızda faide görüyorum.