. */ include_once __DIR__.'/../../core.php'; use Modules\Impianti\Marca; $modelli = Marca::where('parent', '=', $id_record)->get(); foreach ($modelli as $modello) { $n_impianti = $dbo->fetchNum('SELECT * FROM `my_impianti` WHERE `id_modello`='.prepare($modello->id)); echo '