phpmaker是个好东西

http://www.hkvstore.com/phpmaker/

可以直接读取数据库生成php代码。可定制功能强大。基本可以直接使用。
存在问题:
1.英文界面
方法:自己修改
2.上传文件的字段会有问题,insert错位。
方法:打开**add.php,寻找上传部分,把字段名换成正确的。并把因此确实的字段补写。

$fieldList["`fengmian`"] = " '" . $theName . "'";
//$fieldList["`shuming`"] = " '" . $theName . "'";
@unlink($_FILES["x_fengmian"]["tmp_name"]);
}

// Field shuming
$theValue = (!get_magic_quotes_gpc()) ? addslashes($GLOBALS["x_shuming"]) : $GLOBALS["x_shuming"];
$theValue = ($theValue != "") ? " '" . $theValue . "'" : "NULL";
$fieldList["`shuming`"] = $theValue;

3.上传使用绝对路径
方法:
$sTmpFolder = ewUploadPathEx(true, EW_UploadDestPath);改为false

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注