I am using PHP as the scripting language for the backend of my web application
<?php
//importing db.php in the includes folder
require("includes/db.php");
$nic = $_POST["NIC"];
$dp = $_POST["DP"];
$date = $_POST["Date"];
$tele = $_POST["Tele"];
$mail = $_POST["Email"];
$sql="INSERT INTO `order` (NIC,DP,Address,Date,Telephone,Email) VALUES ('$nic ','$dp','$address',CURDATE(),'$tele','$mail')";
$result = mysqli_query($db,$sql);
?>
Customers must submit a form using the aforementioned code in order to place an order. Using the number of orders as the y axis and the date as the x axis, I want to create a bar graph. How do I accomplish this?