很简单,你加个表单,在表但中 放置字段名,最好用 checkbox ,每个 checkbox.value 就是对应的字段的实际名字
example:
<input type=checkbox name=chk_field_a value=tbl_field_a>字段一
phpcode
<? $sql="select ".$chk_field_a." from xxx";
$result=mysql_query($sql,$conn);
if($rst_obj=mysql_fetch_result($result)){
echo $res_obj->$chk_field_a;
}
?>
example:
<input type=checkbox name=chk_field_a value=tbl_field_a>字段一
phpcode
<? $sql="select ".$chk_field_a." from xxx";
$result=mysql_query($sql,$conn);
if($rst_obj=mysql_fetch_result($result)){
echo $res_obj->$chk_field_a;
}
?>
能实现嘛?
谢谢!
2、使用数据字典存储字段名、中文标题、所在表和该字段的检索表达式框架