作者:邵波涛    时间:2016-08-28 浏览量:305








$User = M('User');



$Model = M();
$Model->query('SELECT * FROM user WHERE status = 1');


$alist=$Book->join('t_booktype ON t_book.tid=t_booktype.tid')->order('id desc')->select();//联合查询,排序
$p=$Book->where('pus<>0')->order('id desc')->limit(8)->select();//条件,限制记录集大小
$v=$Book->where('vcnt<>0')->order('vcnt desc')->limit(8)->select();//条件,排序
$t=$Book->field('tag,count(*) as num')->group('tag')->order('num desc')->select();//统计字段,分类,排序
$c=$Book->where('id<>""')->field('id,count(*) as num')->group('id')->limit(8)->select();各类混合。








public function bookinfo($id)


public function bookname($id){
   return $t[0]['title'];


public function bookinfo($id)


$this->success('新增成功', 'User/list');//成功后跳转指定控制器的指定方法

共有 6 条留言
  • AngeloAntef
    As you will inevitably learn on your path to losing weight, effective weight loss is not only about watching what you eat, but much more about changing your lifestyle. This means changing your habits and how you approach your day-to-day life. Read this information to help you throughout the process.
  • Caseynob
    Some people, especially those running on busy daily schedules tend to use the pills to help maintain weight since they can not afford to follow all the diet programs. This is not advised. It is recommended that one seek advice from a professional in this field before using the pills. This can save one from many dangers associated with the misuse. The diet pills should always be taken whole. Some people tend to divide the pills to serve a longer period of time. This is not advised and can lead to ineffectiveness. If it is required that one takes a complete tablet, it means that a certain amount of the ingredients are required to achieve the desired goal. It is also recommended that one does not crush the pill and dissolve it in beverages. Chemicals found in beverages have the potential of neutralizing the desired nutrients in the pill thereby leading to ineffectiveness. The best way to take the tablets is swallowing them whole with a glass of water. The diet pills speed up the metabolic processes. This is the key factor that leads to the burning of all the fats in the body. This means that one passes out lots of urine, which subsequently leads to dehydration. It is imperative that the user take lots of water round the clock. This will help curb dehydration, which can lead to health problems. In addition to that, water offers the required medium for the function of the nutrients and elimination of the fats. When buying the review of diet pills, it is imperative that one gets the most recommended dose. People tend to compromise the quality and effectiveness of the tablets due to the variation in cost. The low priced pills depict poor quality, which means their effectiveness is not reliable. Some have also been found to cause health problems. The dose should also be taken as recommended. Over dose will not speed up the process but rather lead to complication. This will increase risk of side effects. If the taking of the pill is forgotten, do not take more to compensate for the lost time. The diet plan enclosed with the diet pills has also to be followed. According to the requirements, the termination of the diet must be done even with no results. This means your body is irresponsive.
  • Robertdyern
    Doctor Who is now considered a British Institute and has come a long way since it first aired on November 23rd 1963. The very first show saw the Doctor travel 100,00 years into the past to help some dim cavemen discover light. After 26 seasons and seven Doctors later the series came off our screens in 1989 much to the disappointment of the huge devoted fanbase. In 1996 an attempt was made to revive Doctor Who but it wasnt until June 2005 when it came back with a vengeance with Christopher Eccleston as the ninth Doctor that put the series back on the map as it were. It then went on for 5 years with David Tenant portraying the Doctor until 2010 when Matt Smith took over the role. Today it is still a great family show and has attracted many new fans. https://www.cialissansordonnancefr24.com/acheter-cialis-a-paris-sans-ordonnance/
  • Lukhoogue
    Efficacia Propecia 5 Alfa Reduttasi online pharmacy Nizagra Sildenafil Prix Du Cytotec Au Maroc Cialis Generique Sans Danger
  • Lukhoogue
    Tadalis Sx Soft And Generique cialis Prix Kamagra 20 Dutasteride Canada