Skip to content
Snippets Groups Projects
Commit 2437d834 authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

oups

parent 6f3f7b63
No related branches found
No related tags found
No related merge requests found
<?php <?php
class Shop{ class Shop{
public static function getAllProducts(){ public static function getAllProducts(){
$itemConfig = Connexion::pdo()->query("SELECT itemConfig FROM qs_shops")->fetchColumn(); $itemConfig = Connexion::pdo()->query("SELECT itemConfig FROM qs_shops")->fetchAll(PDO::FETCH_ASSOC);
$items = yaml_parse($itemConfig); $items = yaml_parse($itemConfig);
print_r($items); print_r($items);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment