Hello for some reason when i run actionpage11.php i get a very strange output as shown below and I cant seem to work out why.I was wondering if anyone had an idea as to why this is?
output:
userprofile.php:
<?php
    session_start();
    require 'config.php';
    $id = $_POST['bidder_id'];
    $sql = "SELECT * FROM `customer` WHERE email_adress = '$id'";
    $sql2 = "SELECT * FROM `review` WHERE accepted_bidder = '$id'";
    $sql3 = "SELECT * FROM `comment` WHERE comment_to = '$id';";
    $result = $conn->query($sql);
    $result2 = $conn->query($sql2);
    $result3 = $conn->query($sql3);
    ?>
    <!DOCTYPE html>
    <html lang="en">
            <!-- PAGE CONTENT -->
            <div class="page-content page-search-result">
                <div class="container">
                <table>
                    <tr>
                        <th>Name</th>
                        <th>Description</th>
                        <th>Skill</th>
                    </tr>
          <!-- populate table from mysql database -->
                    <?php while($row = mysqli_fetch_array($result)):?>
                    <tr>
                        <td><?php echo $row['name']; ?></td>
                        <td><?php echo $row['description'];?></td>
                        <td><?php echo $row['skill'];?></td>
                    </tr>
                    <?php endwhile;?>
                </table>
                    <!-- End Search Form -->
                </div>
            </div>
            <div class="page-content page-search-result">
                <div class="container">
                <table>
                    <tr>
                        <th>review</th>
                        <th>score</th>
                    </tr>
          <!-- populate table from mysql database -->
                    <?php while($row = mysqli_fetch_array($result2)):?>
                    <tr>
                        <td><?php echo $row['review_description']; ?></td>
                        <td><?php echo $row['rating'];?>/10</td>
                    </tr>
                    <?php endwhile;?>
                </table>
                        <form action="actionpage11.php" method="POST" style="border:1px solid #ccc">
                        <div class="container">
                        <input type="hidden" value="<?php echo $id; ?>" name="comment_to" />        
                        <label><b>Comment</b></label>
                        <input type="text" placeholder="Enter Comment" name="comment" >
                        <div class="clearfix">
                        <button type="submit" class="signupbtn" name="submit" value="submit">Submit</button>
                </form>
            </div>
                    <?php while($row = mysqli_fetch_array($result3)):?>
                    <tr>
                        <td><?php echo $row['comment']; ?></td>
                        <td><?php echo $row['comment_by']; ?></td>
                        <td><?php echo $row['comment_time']; ?></td>
                    </tr>
                    <?php endwhile;?>
                    <!-- End Search Form -->
                </div>
            </div>
            <!-- END PAGE CONTENT -->
actionpage11.php:
<?php
session_start();
require 'config.php';
<?php
session_start();
require 'config.php';
$comment    = $_POST['comment'];
$comment_to    = $_POST['comment_to'];
$comment_by = $_SESSION['login_user'];
$query   = "INSERT into `comment` (comment,comment_time,comment_by,comment_to) VALUES('" . $comment . "',now(),'" . $comment_by . "','" . $comment_to . "')";
$success = $conn->query($query);
if (!$success) {
    die("Couldn't enter data: ".$conn->error);
}
 header("location: userprofile.php");
$conn->close();
?>

 
     
    