function query(sql, array) {
const connection = mysql.createConnection({host: '127.0.0.1', user: 'root', password: 'root', database: 'base'})
connection.connect();
connection.query(sql, array);
connection.end();
}
imagejpeg($new_image, 'new_image.jpeg');
<script>
const items = {key: 'ds:0', hash: '1', data:[[[11,[null,null,null,null,[null,null,"/store/games"]],"Игры"],[1,[null,null,null,null,[null,null,"/store/apps"]],"Приложения"],[9,[null,null,null,null,[null,null,"/store/movies"]],"Фильмы"],[5,[null,null,null,null,[null,null,"/store/books"]],"Книги"],[13,[null,null,null,null,[null,null,"/store/apps/category/FAMILY"]],"Детям"]]], sideChannel: {}}
</script>