这是测试的代码,具体修改以下几个参数就可以拉:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
.style3 {font-size: 24px}
-->
</style>
</head>
$domain,$port,$user,$db,$pwd,$table
<body>
<?php
require('list_fields_class.php');
$list_employee=new field2list('localhost','3306','root','','jbdb','employee');
?>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
.style3 {font-size: 24px}
-->
</style>
</head>
$domain,$port,$user,$db,$pwd,$table
<body>
<?php
require('list_fields_class.php');
$list_employee=new field2list('localhost','3306','root','','jbdb','employee');
?>
</body>
</html>
固化了html代码,给使用带来不便建议:
html代码用模板制作
类中要封装处理表单变量的代码
记得我第一次写了一个CLASS 放到CU上 被几个老大骂得找不到脸了……