UFO2015
什么鬼呀!知道什么是贴代码吗?<?php
// PDO
try{
$dsn = 'mysql:host=localhost;dbname=test';
$username = 'root';
$passwd = '123456';
$pdo = new PDO($dsn,$username,$passwd);
var_dump($pdo);
$sql = <<<EOF
INSERT user(username,password) VALUES("u00","000"),("u02","002"),("u03","003");
EOF;
$result = $pdo->exec($sql);
echo ($result);
}catch(PDOException $e){
echo $e->getMessage();
}
?>