In the DB model , the query is fine, in the Controller the information is sent correctly to the view but in the View not I know how to print the matrix in a foreach. The only way to print the arrangement is with the following:
<?php
print_r($mostrar2);
?>
and I get the following information:
Array ([0] => Array ([name] = > Cinema [command_name] = > systemctl disable madness [value] = > 12) [1] = > Array ([name] = > Cinema [command_name] = > systemctl disable madness [value] = > enable ) [2] = > Array ([name] = > Cinema [command_name] = & systemctl disable madness [value] = > sas) [3] = > Array ([name] = > Cinema [command_name] = > systemctl disable madness [value] = > enable) [4] = > Array ([name] = > Cinema [command_name] = > systemctl disable insanity [value] = > sas) [5] = > Array ([name] = > Cinema [command_name] = > systemctl disable madness [value] = > false) [6] = > Array ([name] = > Cinema [command_name] = > systemctl disable madness [value] = > false) [7] = > Array ([name] => Pharmacies AS [command_name] = > systemctl disable madness [value] = > false) [8] = > Array ([name] = > Pharmacies AS [command_name] => systemctl disable madness [value] = > sas) [9] = > Array ([name] => Pharmacies AS [command_name] = > systemctl disable BBB [value] = > ) [10] = > Array ( [name] = > Pharmacies AS [command_name] = > systemctl disable vsftpd [value] = > sad) [11] = > Array ([name] = > iQOS [command_name] = > systemctl test writing solution [value] = > false) [12] = > Array ( [name] = > local [command_name] = > systemctl disable BBB [value] = > sas) [13] = > Array ([name] = > local [command_name] = & systemctl disable madness [value] = > false) [14] = > Array ([name] = > local [command_name] = > systemctl disable madness [value] = > )
I need you to only show me these values
Cinema, systemctl disable madness, 12