I have a textbox on one of my forms, the user enters a date in the form of dd/mm/yy but when i try to insert it into one of my tables in my database, it enters it as 0000-00-00. how can I fix this? I want it to show on this format on my database dd/mm/yy
this is my following insert where $start is the data variable
$query = "INSERT INTO paycheck (payCheckId,jobId,payRate,jobLocation,hoursWorked,startPeriod,empId)
VALUES('','$job_id','$pay_rate','$job_location','$hours','$start','$userId')";
$result = mysqli_query($db, $query); //we make the query