(Create New)
prepare("SELECT * FROM assets WHERE AssetType = :assetTypeId AND CreatorID = :userId");
$stmt->bindParam(':assetTypeId', $assetTypeId);
$stmt->bindValue(':userId', $userInfo['UserId']);
$stmt->execute();
$result = $stmt->fetchAll(PDO::FETCH_ASSOC);
foreach ($result as $asset){
echo'
' . htmlspecialchars($asset["Name"]) . '
';
}
?>