**Hi please ignore all comments i am trying to insert data in my database but something wrong with my query or my script please help or add some suggestions please because when i click submit button it is not submitting to my database**

```
<?php

    include("connect.php");

    session_start();

    if( !isset($_SESSION['id']))
    {
        header('Location: ../index.php');
    }

    //foreach($_POST as $key => $val)
    //{
    //    echo '<p> '.$key.'='.$val.' </p>';
    //}  

    $name = $_SESSION['name'];
    $queue = $_POST['queue'];
    //$TarosID = $_POST['TarosID'];
    //$Status = $_POST['Status'];
    //$Reason = $_POST['Reason'];

    $date = date("d/m/y");
    $time = time("h:i:s");

    $query = "INSERT INTO sms_traffic_db.table_data name, date, time, queue, TarosID, Status, Reason VALUES '$name, $date, $time, $queue'";
    $result = mysql_query($query);

    if($result)
    {
        echo "Data Inserted successfully";
    }
    else
    {
        echo "Error";
    }        
    mysql_close();

    ?>

```