If I understood you correctly, you just want to return the row from the database into a session, so you can use it later to construct HTML elements:
session_start();
$mysqli = new mysqli('host', 'user', 'pass', 'database');
if($stmt = $mysqli->prepare('SELECT * from FIELDS where 1')):
$stmt->execute();
$fields = $stmt->get_result(); //so we can use fetch array and simplify this process
while($row = $stmt->fetch_array(MYSQLI_ASSOC)): //foreach result set, return an associative array
$_SESSION['fields'][] = $row; //push the array into your fields session
endwhile;
$stmt->close(); //close your statement
endif;
$myslqi->close(); //drop the mysqli connection, we're done
print_r($_SESSION['fields']); //lets see what fields looks like now
$ret = '';
foreach($_SESSION['fields'] as $row): //foreach row in sessions
$ret .= '<div>'; //parent container for all fields in this row
foreach($row as $idx => $field): //foreach field in the row## Heading ##
$ret .= '<span>'. $field . '</span>'; //create a div element to contain the field
endforeach;
$ret . = '</div>'; //close the parent container
endforeach;
echo $ret; //returned the constructed HTML for the fields