Posted in PHP onMay 04, 2011
$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);
php join函数应用
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@