$result = $pdo->query("SELECT `Nick`, `timestamp` FROM `Skins`")->fetchAll(PDO::FETCH_ASSOC);
$nick = $result[0]['Nick'];
$timestamp = $result[0]['timestamp']
$response = file_get_contents('"https://api.mojang.com/users/profiles/minecraft/"+$nick+"?at="+$timestamp');
$nick = urlencode($nick);
чтобы проходили спецсимволы и пробелы в url $(document).ready(function() {
let html = [];
let containerHTML = $(".container").html().split(/\n/);
let containerTXT = $(".container").text().split(/\n/);
$.each( containerHTML, function( i, el ) {
if (containerHTML[i] == containerTXT[i])
html.push('<div>' + containerTXT[i] + '</div>');
else
html.push(containerHTML[i]);
});
$(".container").html(html.join('\n'));
});