I am writing code to display in the browser the info that's been submitted into the comments database. The comments that users submit using my form should upon submission stretch out across the browers page but it doesn't, instead each word in the paragraph is on it's own line.
HERES THE PHP CODE:
<body>
<?php
$dbc = mysqli_connect ('dbhost', 'dbusername', 'dbpass', 'bdname')
or die('Error connecting to MySQL server.');
$query = "SELECT * FROM comments";
$data = mysqli_query($dbc, $query);
echo '<table>';
while ($row = mysqli_fetch_array($data)) {
echo '<tr><td><strong>Comments:</strong> ' . $row ['comments'] . '</td></tr>';
}
echo '</table>';
mysqli_close($dbc);
?>
</body>