Ejemplo n.º 1
0
        //GET PRODUCTS
        private MySqlDataReader loadProducts()
        {
            populateFolder = "products";
            MySqlDataReader result;

            con = new db();
            con.MysqlQuery("SELECT * FROM products WHERE category_id = '" + category_id + "' AND online = 1");
            result = con.ExReader();
            return(result);
        }
Ejemplo n.º 2
0
        //GET CATEGORIES
        private MySqlDataReader LoadCategories()
        {
            populateFolder = "categories";
            MySqlDataReader result;

            con = new db();
            con.MysqlQuery("SELECT * FROM categories WHERE online = 1");
            result = con.ExReader();
            return(result);
        }