Destoon implements a multi-table query example and Destoon implementation example. Destoon implements a multi-table query example. Destoon implements an example in this article to implement a Destoon multi-table query. It is of great practical value in the secondary development of destoon. Specific Implementation methods include Destoon and Destoon.
In this example, Destoon multi-table queries can be implemented. It is of great practical value in the secondary development of destoon. The specific implementation method is as follows:
1. template file section
The code is as follows:
{loop $tags $v}
{dsubstr($v['company'],18)}
{/loop}
2. php code
The code for implementing destoon multi-table query is 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; }
I hope this example will help you with destoon development.
Destoon dual-table query how to query the content of an article and keep the format unchanged
{Loop $ tags $ k $ t} {$ t [title]}
The destoon administrator provides urgent assistance. labels indicate how to call multiple tables.
In this example, Destoon multi-table queries can be implemented. It is of great practical value in the secondary development of destoon. The specific implementation method is as follows...