pdo 的sql拼接
$keys=implode(',',array_keys($data));$values=array_values($data);$place_holders = implode(',', array_fill(0, count($values), '?'));$sql="insert into $table ($keys) values ($place_holders)";$sth = $thi...
原创
2018-02-10 18:05:32 ·
267 阅读 ·
0 评论