What is datatype of date?

时间:2016-06-23 02:28:56

标签: php

I cant send the date time to the database because i dont know the datatype of it. Can you guys help me? Im stuck here for like a day or two.

if(isset($_POST['Submit'])){
$stmt = $connection->prepare("INSERT INTO user_account(Last_Name, First_Name, Middle_Name, User_name, Password, Birth_date, Address, Contact_no) VALUES (?,?,?,?,?,?,?,?,?)");
$stmt->bind_param("ssssssiss",$_POST['lName'],$_POST['fName'],$_POST['mName'],$_POST['uName'],$_POST['uPassword'],$_POST['bDate'],$_POST['uAddress'],$_POST['cNumber']);

I thought it was an integer so i declared it as an integer but it was an error can you guys help me? TIA. :)

0 个答案:

没有答案