当前位置:Gxlcms > PHP教程 > phpjoin函数应用_PHP教程

phpjoin函数应用_PHP教程

时间:2021-07-01 10:21:17 帮助过:18人阅读

代码如下:

$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);

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/323208.htmlTechArticle 代码如下:

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

人气教程排行