2012年8月10日
摘要: Yii::app()->request->userHostAddress; 阅读全文
posted @ 2012-08-10 15:21 莫笑 阅读(4120) 评论(0) 推荐(1)
摘要: 1: 通过find方法$res = findAll(...); (or findAllByAttributes)$num = count($res)2: 通过count方法$res1 = countByAttributes(...);$res2 = countBySql(...);3: 通过query方法$sql="SELECTCOUNT(*)asclientsFROMclient_table";$command=Yii::app()->db->createCommand($sql);$results=$command->queryAll();$numCl 阅读全文
posted @ 2012-08-10 10:28 莫笑 阅读(1851) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2012-08-10 09:10 莫笑 阅读(123) 评论(0) 推荐(0)