Destoon實(shí)現(xiàn)多表查詢示例
本文示例可實(shí)現(xiàn)Destoon多表查詢。在進(jìn)行destoon二次開發(fā)的時(shí)候有很高的實(shí)用價(jià)值。具體實(shí)現(xiàn)方法如下:
1.模板文件部分
具體代碼如下:
<!--{php $tags=tag("table=destoon_member m,destoon_company c&prefix=&condition=m.userid=c.userid and c.groupid=17&pagesize=10&template=null");}-->
{loop $tags $v}
<li>
<div class="dk1bb_t"><a href="#" rel="external nofollow" rel="external nofollow" ><img src="{$v['thumb']}" border="0" width="120" height="92" /></a></div><div class="dk1bb_b"><a href="#" rel="external nofollow" rel="external nofollow" >{dsubstr($v['company'],18)}</a></div>
</li>
{/loop}
2.php代碼部分
實(shí)現(xiàn)destoon多表查詢代碼如下:
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;
}
希望本文示例對(duì)大家的destoon開發(fā)有一定的幫助作用。
- destoon實(shí)現(xiàn)會(huì)員商鋪中指定會(huì)員或會(huì)員組投放廣告的方法
- destoon實(shí)現(xiàn)調(diào)用圖文新聞的方法
- destoon切換城市后實(shí)現(xiàn)logo旁邊顯示地區(qū)名稱的方法
- 去掉destoon資訊內(nèi)容頁keywords關(guān)鍵字自帶的文章標(biāo)題的方法
- destoon調(diào)用discuz論壇中帶圖片帖子的實(shí)現(xiàn)方法
- destoon調(diào)用企業(yè)會(huì)員公司形象圖片的實(shí)現(xiàn)方法
- destoon實(shí)現(xiàn)調(diào)用當(dāng)前欄目分類及子分類和三級(jí)分類的方法
- destoon實(shí)現(xiàn)VIP排名一直在前面排序的方法
- 修改destoon會(huì)員公司的偽靜態(tài)中的com目錄的方法
- destoon文章模塊調(diào)用企業(yè)會(huì)員資料的方法
相關(guān)文章
PHP錯(cuò)誤Warning: Cannot modify header information - headers alr
這篇文章主要介紹了PHP錯(cuò)誤Warning: Cannot modify header information - headers already sent by解決方法,需要的朋友可以參考下2014-09-09
PHP二維關(guān)聯(lián)數(shù)組的遍歷方式(實(shí)例講解)
下面小編就為大家?guī)硪黄狿HP二維關(guān)聯(lián)數(shù)組的遍歷方式(實(shí)例講解)。小編覺得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧2017-10-10
全世界最小的php網(wǎng)頁木馬一枚 附PHP木馬的防范方法
php網(wǎng)頁木馬代碼,大家可以看下自己的網(wǎng)站里面是不是有這樣的代碼,注意網(wǎng)站安全用mcafee限制w3wp.exe生成php或者asp文件。并在php.ini中設(shè)置一下。2009-10-10
Laravel jwt 多表(多用戶端)驗(yàn)證隔離的實(shí)現(xiàn)
這篇文章主要介紹了Laravel jwt 多表(多用戶端)驗(yàn)證隔離的實(shí)現(xiàn),文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2019-12-12
Symfony2實(shí)現(xiàn)在doctrine中內(nèi)置數(shù)據(jù)的方法
這篇文章主要介紹了Symfony2實(shí)現(xiàn)在doctrine中內(nèi)置數(shù)據(jù)的方法,結(jié)合實(shí)例形式分析了在doctrine中內(nèi)置數(shù)據(jù)的具體步驟與相關(guān)技巧,需要的朋友可以參考下2016-02-02
php導(dǎo)出word格式數(shù)據(jù)的代碼實(shí)例
這篇文章主要介紹了php導(dǎo)出word格式數(shù)據(jù)的代碼實(shí)例,有需要的朋友可以參考一下2013-11-11

