?? edit.php
字號(hào):
<?php include ("../inc/db.php"); include ("../inc/phpmkrfn.php"); include ('../inc/xtpl.php'); $t_AUTOID=$_GET['AUTOID']; if (empty($t_AUTOID)){$t_AUTOID=0;}; $xtpl=new XTemplate ("edit.html"); $conn = phpmkr_db_connect(HOST, USER, PASS, DB, PORT); $sSql ="select * from accounts where AUTOID=".$t_AUTOID; $rs = phpmkr_query($sSql,$conn) or die("Failed to execute query: " . phpmkr_error() . '<br>SQL: ' . $sSql); $row = mysql_fetch_array($rs, MYSQL_ASSOC); $deltid=$row[ID]; //明細(xì)編號(hào) $xtpl->assign("DATA",$row); /* assign array data */ $sSql ="select accdelt.*,accounts.ACC01 from accdelt LEFT JOIN accounts ON accdelt.accid = accounts.id where ACCID='$deltid'"; $rs = phpmkr_query($sSql,$conn) or die("Failed to execute query: " . phpmkr_error() . '<br>SQL: ' . $sSql); while ($row = mysql_fetch_array($rs, MYSQL_ASSOC)) { $xtpl->assign("deDATA",$row); /* assign array data */ $xtpl->parse("main.table.row"); /* parse a row */ } $xtpl->parse("main.table"); /* parse the table */ $xtpl->parse("main"); $xtpl->out("main");?>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -