You can insert your variable in <strong> tags using the following method:
<?php $conContent = $row['content']; ?> <strong> <?php echo $conContent; ?> </strong>
Another solution:
$conContent = $row['content']; echo "<strong>" . $conContent . "</strong"; //or echo "<strong> $conContent </strong";
If styles should apply to all lines, you can use the foreach loop:
foreach($row as $v) { echo "<strong>$v</strong"; }
Note. . It is assumed that the result of the mysql array is stored in the $row variable.
These are not just <strong tags. You can use <h1> , <p> , <div> - it does not matter. PHP will display the contents of the variable at the location you specify.
Hope this helps!
source share