//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); }
//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); }