Sindbad~EG File Manager

Current Path : /home/beghelic/www/admin/kod/
Upload File :
Current File : /home/beghelic/www/admin/kod/yorum-ekle.php

<?php
ob_start();
include "baglan.php";

if(empty(@$_GET["d"])){
  $lang = null;
  $root_id = 0;
}else{
  $lang = $_POST["lang"];
  $root_id = $_POST["root_id"];
}


$must = $_POST["must"];
$namesurname = $_POST["namesurname"];
$company = $_POST["company"];
$comment = $_POST["comment"];



$stmt = $db->prepare("insert into comments (lang, root_id, must, namesurname, company, comment)value(:lang, :root_id, :must, :namesurname, :company, :comment)");
$stmt->bindParam(':must', $must, PDO::PARAM_STR);
$stmt->bindParam(':lang', $lang, PDO::PARAM_STR);
$stmt->bindParam(':root_id', $root_id, PDO::PARAM_STR);
$stmt->bindParam(':namesurname', $namesurname, PDO::PARAM_STR);
$stmt->bindParam(':company', $company, PDO::PARAM_STR);
$stmt->bindParam(':comment', $comment, PDO::PARAM_STR);
$stmt->execute();

header('Location: ../pages/musteriyorumlari.php');

?>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists