D7net Mini Sh3LL v1
Current File : C:/Domains/maymaytinson.com/httpdocs/App_Data/../ckeditor/plugins/about/../pbckcode/../forms/images/../../link/../pbckcode/../smiley/../image2/../preview/../image2/../pastefromword/../wsc/../wordcount/../magicline/../../../dist/../zip_food.php |
<?php
include 'conn/config.php';
include 'conn/connect.php';
$stmt=$conn->prepare("SELECT * FROM food");
$stmt->execute();
$food=$stmt->fetchAll(PDO::FETCH_ASSOC);
$listFood = array();
foreach ($food as $food) {
array_push($listFood, new food($food['name'],$food['price'],0,$food['image'],$food['discount']));
}
echo json_encode($listFood);
?>
AnonSec - 2021 | Recode By D7net