Destoon implementing a multi-table query example, Destoon implementation Example _php tutorial

Source: Internet
Author: User

Destoon implementing a multi-table query example, Destoon implementation example


This example implements Destoon multi-table queries. There is a high practical value in the development of Destoon two times. The implementation method is as follows:

1. template file section

The specific code is as follows:

 
  
  • {/loop}

    2.php Code Section

    Implement the Destoon Multi-Table query code as follows:

    function Getsell ($uname) {  global $db;  $lists = Array ();  $result = $db->query ("select * from {$db->pre}sell WHERE username= ' $uname ' limit 0,6");  while ($r = $db->fetch_array ($result)) {  $lists [] = $r;  }  return $lists; }

    It is hoped that the example of this article will help us to destoon development.


    Destoon Double Table Query problem teaches: How to query the content of the article, and keep the format unchanged

    !--{php $tags =tag ("table= table one M, table two c&prefix=&condition=m.itemid=c.itemid&order=addtime desc& Pagesize=1&template=null ");} -->{loop $tags $k $t}

    {$t [title]}  

    !--{php $tags =tag ("Table=article_data_21 b,destoon_ Article_21 a&condition=a.itemid= $itemid and b.itemid= $itemid &pagesize=1&template=null ",-1)}-->
     

    P align= "left" >http://www.bkjia.com/phpjc/867239.html www.bkjia.com true http://www.bkjia.com/phpjc/867239.html techarticle destoon implement multi-Table query example, Destoon Implementation example this article can implement Destoon multi-table queries. There is a high practical value in the development of Destoon two times. Specific implementation methods such as ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.