this struct is not good.
you can do this:id name company
1 老王 yejin1_
2 老李 yejin2_另一个标为:total字段为:id data company
1 3000 yejin1_1
2 200 yejin1_1
you can do this:id name company
1 老王 yejin1_
2 老李 yejin2_另一个标为:total字段为:id data company
1 3000 yejin1_1
2 200 yejin1_1
组装成查询串
然后在total中查询
---------------------------------"select * from total where ".$rs->company."=3000"