Code:
<?php
      if(isset($_POST['order']))
	  {
		 require_once("connection.php");
		$query= "insert into order1 (`total`,`quantity`,`firstname`,`date_createdAt`,`email`,`address`,`city`,`state`,`telephone`,`mobile2`,`comments`) values ('".$total."','".$quantity."','".$_POST['firstname']."','".date("Y-m-d h:i:s")."','".$_POST['email']."','".$_POST['address']."','".$_POST['city']."','".$_POST['state']."','".$_POST['telephone']."','".$_POST['telephone2']."','".$_POST['Comments']."')";
...