echo pullRecentTrades($i)[3];
    ?>
            
        </b>

    </div>
    <div id="recenttradesmiddle">
    </div>
    <div id="recenttradesrightside">
    <b id="recenttradeitemprice">
        Selling for: <?php 
    echo pullRecentTrades($i)[9];
    ?>
</b>
       <a href="trade_offer.php?tradeid=<?php 
    echo pullRecentTrades($i)[0];
    ?>
"><img src="Images/MakeOffer.png" id="recenttrademakeofferimage"/></a> 
    </div>
</div>





<?php 
    $i++;
}
?>
</body>
</html>
//Make a Post! (Post Box and Submit Button)
if (isset($_SESSION["username"])) {
    echo '
    <form action="" method="post" id="formPost">
        <input type="text" placeholder="Post" id="Post" name="Post"/>
        <input type="submit" name="postcomment" value="post">
    </form>
    ';
    $tradeid = $_GET['tradeid'];
    $comment = $_POST['Post'];
    $commentername = $_SESSION['username'];
} else {
    echo 'You need to log in before you can make a trade!';
}
?>

    
    
    <?php 
if ($_SESSION["username"] == pullRecentTrades($_GET['tradeid'])[3]) {
} else {
}
require 'Includes/connections.php';
if (isset($_POST['postcomment'])) {
    $sql = $con->query("INSERT INTO traderesponses (tradeid, comment, commentername, commentdatetime)Values('{$tradeid}', '{$comment}', '{$commentername}', NOW())");
    unset($_POST['postcomment']);
}
?>
   
    </div>
</body>