1$result = $db->query('Select `Name`, `Age`, `Color` from `People` ');
2while ($rows = $result->fetch()){
3$Name = $rows['Name'];
4$Age = $rows['Age'];
5$Color = $rows['Color'];
6}
7
1<p>
2Hello, my name is <?php echo $Name; ?>.
3I am <?php echo $Age; ?> years old and my favorite color is <?php echo $Color; ?>.
4</p>
5