I am new to php. I have inserted some multiple checkboxes' values into my database table using implode. Here is the code.
`$checkBox = implode(",", $_POST['car']);
if(isset($_POST['addcar']))
{
$username = $_SESSION['username'];
$query1="INSERT INTO vehicle (username,car) VALUES ('$username', '" . $checkBox . "') ";
mysqli_query($db,$query1);
}`
But i can't find how to delete records. Could someone please help me. Thank you for the answers in advance.