我有三张表my_location1 & my_location2 & my_location3。 my_ is Prefix
。位置1 =乡村主义者。 location2 = statslist。 location3 =城镇名单。在其他表中,我有用户列表。现在我想列出在每个国家统计镇(计数)中使用树木样式+水族用户的所有位置(国家/地区 - 城镇)。 (如何生成这个?)国家/城市/城镇+计数列表
DATABSE注:PID & PID1 =国家,PID2 =的ID统计的ID
my_location1:
id ++++++ name ++++++ active
my_location2:
id ++++++ pid +++++++ name ++++++ active
my_location3:
id ++++++ pid1 +++++++ pid2 ++++++ name ++++++ active
my_user
id ++++++ name ++++++ location1 ++++++ location2 ++++++ location3 ++++++ active
e.x
Country (print count Of users in this country)
+++++++stats (print count Of users in this stats)
++++++++++++town (print count Of users in this town)
++++++++++++town (...)
++++++++++++town (...)
++++++++++++town (...)
+++++++stats (...)
++++++++++++town (...)
+++++++stats (...)
++++++++++++town (...)
++++++++++++town (...)
Country1 (...)
+++++++stats (...)
++++++++++++town (...)
++++++++++++town (...)
Country2 (...)
+++++++stats (...)
++++++++++++town (...)
++++++++++++town (...)
++++++++++++town (...)
++++++++++++town (...)
...more
感谢您的帮助。
那么你的问题到底是什么? – 2012-03-18 10:11:39
我想列出在每个国家统计镇(计数)中使用树木样式+水族用户的所有位置(国家/地区 - 城镇)。 (如何生成这个??) – 2012-03-18 10:13:55
取决于你想要使用哪个树视图控件。你是否已经选择了一个树形视图控件,例如。 http://bassistance.de/jquery-plugins/jquery-plugin-treeview/? – 2012-03-18 14:09:08