prepare("SELECT * FROM Dishes WHERE deleted=0 ORDER BY name ASC");
$q->execute();
$list = $q->fetchAll(PDO::FETCH_ASSOC);
foreach ($list as $el) {
$val = 0;
$total = "0,00";
$notes = "";
foreach ($o["dishes"] as $di) {
if ($di["id"] == $el["id"]) {
$val = $di["dishQty"];
$total = number_format($val * $el["price"], 2, ",", "'");
$TOT += $val * $el["price"];
$notes = $di["dishNotes"];
break;
}
}
?>