This question already has an answer here:
As written in the tittle I would like the data to be displayed in paragraph not in a table. Can please anyone help me. This is my working code, data is displayed in a table. BUT I would like to be displayed in paragraphs not in tr/th.
<!DOCTYPE html>
<html lang="pl-PL">
<head>
</head>
<body>
<table>
<tr>
<th>Content</th>
</tr>
<?php
session_start();
$username = "";
$email = "";
$errors = array();
$_SESSION['success'] = "";
$mysqli = mysqli_connect('localhost', 'root', '', 'cms');
?>
<?php
$query ="SELECT * FROM articles";
$result = $mysqli->query($query) or die($mysqli->error.__LINE__);
if($result->num_rows > 0) {
while($row = $result->fetch_assoc()){
echo "<tr><td>" .$row['article_content'] ."</td><tr>";
}
}
?>
</table>
</body>
</html>
</div>