Deleting selected data help
I'm hoping to get some assistance with deleting selected data from my database as I am having some issues.
I've created a page where a user and create a profile (multiple profiles). All is done and working fine. I've then echoed the selected data as per an an image below.
I've echoed some profile details including an edit and delete button
Now what I want is to be able to delete the profile data in my database by clicking the delete button. But i'm having some issues doing this and beleive the query has to be identified by more then just the $username... etc by username, first_name and last_name but i'm not sure how is best to go about it.
$query = "SELECT * FROM individual_profile WHERE username = '$username'";
I would really appreciate some helps!