📄 usersetedit.php
字号:
<?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 ("usersetedit.html"); $conn = phpmkr_db_connect(HOST, USER, PASS, DB, PORT); $sSql ="select * from user where AUTOID=".$t_AUTOID; $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("DATA",$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");?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -