I have a form that submits, Both text and of course, my image file to my database along with moving to image to a permanent directory.
The issue I am having is when I pull and display the content from the database everything shows apart from the image file.
Images for better context Database entry, End result
HTML Form
<?php
    include("inc/dbconfig.php");
    error_reporting(0);
    if (isset($_POST['btn-signup'])){
        //Text Data Input
        $cardName = $_POST['cardName'];
        $cardSet = $_POST['cardSet'];
        $cardRarity = $_POST['cardRarity'];
        $cardImg = $_FILES['cardImage']["name"];
        move_uploaded_file($_FILES["cardImage"]["tmp_name"],"../".$_FILES["cardImage"]["name"]);
        $cardImgPath = "media/images/userUpload/".$_FILES["cardImage"]["name"];
        $mysqlQ =("INSERT INTO cards (cardName, cardSet, cardRarity, cardImage) VALUES ('$cardName', '$cardSet', '$cardRarity', '$cardImgPath')");
        mysqli_query($conn,$mysqlQ);
        header('Location: directory.php');
    }
    exit();
?>
Displaying the data
<?php function itemCard (array $row) { ?>
    <div class="card" style="width: 18rem;">
        <img class="card-img-top" src="<?php echo '../'. $row['cardImage']?>" alt="Card fsa cap">
        <div class="card-body">
            <h5 class="card-title"><?= $row["cardName"]?></h5>
            <p class="card-text">Card Set: <b><?= $row["cardSet"]?></b></p>
            <p class="card-text">Card Rarity: <b><?= $row["cardRarity"]?></p>
        </div>
    </div>
<?php } ?>
 
     
    