
废话不多说,直接看代码:<?php$dbh=newPDO('mysql:host=localhost;dbname=test',"test");$query=<<<QUERYINSERTINTO`user`(`username`,`password`)VALUES(:username,:password);QUERY;$statement=$dbh->prepare($query);$bind_params=array(':username'=>"laruence",':password'=>"weibo");foreach($b...