I have a database with Name (aseguradora), Price (Precact) and Date (Ultdato). $matriu1 is a variable (table from datatable). Id is a variable (date selection from user)