I am trying to echo out a line break by using <br></br>
but can't seem to get it to display a line break.
I tried to use the <br></br>
command
<?php
$sql = "SELECT * FROM review;";
$stmt = mysqli_stmt_init($conn);
//Prepare the prepared statement
if (!mysqli_stmt_prepare($stmt, $sql)) {
} else {
//Bind parameters to the placeholder
//Run parameters inside database
mysqli_stmt_execute($stmt);
$result2 = mysqli_stmt_get_result($stmt);
$resultCheck2 = mysqli_num_rows($result2);
while ($row2 = mysqli_fetch_assoc($result2)) {
echo '<div class="review_post">';
echo ' <i class="fas fa-quote-left"></i>'.htmlspecialchars($row2['review']).' '.htmlspecialchars($row2['user_uid']).' '.htmlspecialchars($row2['datesubmitted']).'<i class="fas fa-quote-right"></i>';
echo '<br></br>';
echo '<br></br>';
echo '<br></br>';
echo '</div>';
}
I expected to display all the reviews in separate line but it is all squashed up.
This is the CSS:
div.review_post {
position: absolute;
font-size: 3em;
left: 8em;
top: 130em;
line-height: 5em;
margin-bottom: 20em;
white-space: nowrap;
}
and loose the tags. See what that does for you. – TimBrownlaw Jun 07 '19 at 11:09
` and add only one `
` after `` – M.Hemant Jun 07 '19 at 11:12
=
– Jun 07 '19 at 11:27