File:cn/productview.html
Method:query.scalar(columns,*where,*order)
連接超時(shí)時(shí)間已到。在嘗試使用預(yù)登錄握手確認(rèn)時(shí)超過(guò)了此超時(shí)時(shí)間。這可能是因?yàn)轭A(yù)登錄握手失敗或服務(wù)器未能及時(shí)響應(yīng)。 嘗試連接到此服務(wù)器時(shí)花費(fèi)的持續(xù)時(shí)間是 - [Pre-Login] initialization=1;handshake=15397;
數(shù)據(jù)庫(kù)執(zhí)行錯(cuò)誤
cn/xmls/product.xmls
...<span><a href="{~productview.html&gId=*Goodshao}"><img src="../files/goods/{*Goodshao}.gif" width="100" height="100" /> </a></span>"];
}
}
$if(@count==0){
@content=['<div style="color:#FF0000;font-size:12px;height:45px;line-height:45px;text-align:center;">對(duì)不起,愛瑪特生物暫無(wú)你需要的這個(gè)產(chǎn)品!</div>'];
@Pager=$empty;
}
$return($empty);
}
//查詢內(nèi)容
$sub GoodsDetails(){
@querygoods=$query(goods,goods);
@queryfile=$query(document,download);
@Goodshao=$http.get(gId);
@queryfile[Goodshao]=@Goodshao;
@FilePath=@queryfile.scalar(['FilePath'],['Goodshao={*Goodshao}']);
$if(@FilePath==$null){
@FilePath=$empty;
}
@querygoods[Goodshao]=@Goodshao;
@rowgoods=@querygoods.map(*,['Goodshao={*Goodshao}']);
@countmn=@querygoods.scalar(['count(*)'],['Goodshao={*Goodshao}']);
@listitemma=ma;
@Modified=$empty;
$if(@countmn==0){
@rowgoods=$map();
$write(['<script>history.back();</script>']);
$end;
}
$else{
@Modified=@rowgoods[Modified];
@Modified=$datetime.format(@Modified,yyyy-MM-dd);
@...