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 ...