$result1 = $db->query( "SELECT * FROM gastronomia"); $gastronomia = $result1->fetchAll(PDO::FETCH_ASSOC); $smarty->assign('gas', $gastronomia[0]); ?>