<?php
include("includes/class.inc");
$tmpl =new templet;
$mycon =new mycon;
$con = $mycon->connect();
mysql_select_db("test",$con);
$tmpl->get_file("templet/content.htm");
$rs = mysql_query("select * from test where id=$_GET[id]");
$row=@mysql_fetch_row($rs);
unset($row[0]); //去掉表中读出的多余字段,对齐替换项,或在SELECT语句中列表字段
$tags = array("姓名","性别","年龄","email");
echo $tmpl->parse($tags,$row);
?>
推荐php模板技术[转](3)
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:http://www.heiqu.com/3f1bc26c47afbf4a6e2711567abcd7df.html