I have the following two pieces of PHP
code, both on the same page, but only the first one runs. What seems to be the problem?
The code:
div class="row" >
<div class="col-md-12">
enter code here
<h1 id="username" style="color:white;text-align:center" >
<?php
if ($result->num_rows > 0){
$row = $result->fetch_assoc();
echo $row["username"];}
?>
</h1>
</div>
</div>
<div class="row">
<div class="col-md-12">
<h1 id="bash" style="color:blue;text-align:center">
<?php
if ($result->num_rows > 0){
$row = $result->fetch_assoc();
echo $row["bash"];}
?>
</h1>
</div>
</div>