I have a table that shows the results of mysql through a query, but I would like to be able to change the type of query. I leave you a simple example.
$sql = 'SELECT * FROM avisos ORDER BY fecha DESC';
I need to use a button (or something similar) to change the type of query through a function
$sql = 'SELECT * FROM avisos WHERE tecnico="Manu" ORDER BY fecha DESC';