testet to use json

This commit is contained in:
fr34k 2020-11-01 23:44:44 +01:00
commit 40a3b60bfb
3 changed files with 162 additions and 158 deletions

View file

@ -4,14 +4,14 @@
?>
<div id="content_padding">
<?php
$strJsonFileContents = file_get_contents("projects_data/collection_data.json");
$array = json_decode($strJsonFileContents, true);
$collectionjs = file_get_contents("projects_data/collection_data.json");
$collection = json_decode($collectionjs, true);
?>
<div class="collection_container">
<?php
$index = 0;
foreach($collections as $c) {
$html = '
foreach($collection as $c) {
$html = '
<div class="collection">
<div class="flexbox-col-img">
<div class="col-img-container">