主页 > 编程资料 > PHP >
发布时间:2015-12-29 作者:网络 阅读:176次


$key = array();
$val = array();
foreach ($_POST as $k=>$v)
{
$key[] = '`'.strip_tags(mysql_real_escape_string(trim($k))).'`';
$val[] = "'".strip_tags(mysql_real_escape_string(trim($v)))."'";
}

$keys = join(",",$key);
$vals = join(",",$val);

关键字词: