コードをコピーします コードは次のとおりです:
$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);
http://www.bkjia.com/PHPjc/323208.html
www.bkjia.comtruehttp://www.bkjia.com/PHPjc/323208.html技術記事次のようにコードをコピーします: $key = array(); $val = array(); foreach ($_POST as $k=$v) { $key[] = '`'.strip_tags(mysql_real_escape_string($k) ) ).''' $val[] = "'".strip_tags(mysq...