code:
<?php
if(isset($_POST['add_new']))
{
    $name = $_POST['name'];
    $email = $_POST['email'];
    $phone = $_POST['phone'];
    $field = $_POST['field'];
    $message = $_POST['message'];
    $comment1 =array($_POST['comment1'],$s_date);
    $comment2 = $_POST['comment2'];
    $status = $_POST['status'];
    $s_date = date('Y-m-d');
    $interested_in = $_POST['interested_in'];
    $academic_details = $_POST['academic_details'];
    $city = $_POST['city'];
    $sql = "insert into enquires2(name,email,phone,field,message,comment1,comment2,status,s_date,interested_in,academic_details,city,admin_idd)values('$name','$email','$phone','$field','$message','$comment1','$comment2','$status','$s_date','$interested_in','$academic_details','$city','$admin_id')";
    $result = mysqli_query($link,$sql);
    if($result == true)
    {
      $msg .= "<p style='color:green;'>You are successfully add new enquiry</p>";
    }
    else
    {
      $msg .= "<p style='color:red;'>Error!</p>";
    }
}
?>
In this code I want to pass two value in single variable i.e.
$comment1 = array($_POST['comment1'],$s_date);
which show (array) when I print query ($sql). How can I pass two value into single variable ? please help me.
 
     
     
     
    