I am working an a to-do list with php and mysql. I have already connected my programm with the Database. Now I have this output:
2022-09-24 X Task1
2022-09-24 X Task2
2022-09-24 X Task1
the HTML looks
<ul>
<li><span>X </span>Task1</li>
<li><span>X </span>Task2</li>
<li><span>X </span>Task3</li>
</ul>
How i can delete a Task with php, if I click on "X" without refreshing the site?