Exemple #1
0
    echo "<table>";
    while ($row = mysql_fetch_array($result)) {
        DbConnect::orderList($row);
    }
    echo "</table>";
    mysql_close($con);
} else {
    if (isset($_GET['style']) && !isset($_GET['rest'])) {
        $con = DbConnect::connection();
        $result = DbConnect::queryFoodByStyle($con, $_GET['style']);
        while ($row = mysql_fetch_array($result)) {
            DbConnect::orderList($row);
        }
        mysql_close($con);
    } else {
        if (!isset($_GET['style']) && isset($_GET['rest'])) {
            $con = DbConnect::connection();
            $result = DbConnect::queryFoodByRest($con, $_GET['rest']);
            while ($row = mysql_fetch_array($result)) {
                DbConnect::orderList($row);
            }
            mysql_close($con);
        }
    }
}
?>

    </div>
</body>
</html>