php PDO insert batch multiple rows with placeholders
问题 I am looking to do multiple inserts using PHP PDO. The closest answer I have found is this one how-to-insert-an-array-into-a-single-mysql-prepared-statement However the example thats been given uses ?? instead of real placeholders. I have looked at the examples on the PHP doc site for place holders php.net pdo.prepared-statements $stmt = $dbh->prepare("INSERT INTO REGISTRY (name, value) VALUES (:name, :value)"); $stmt->bindParam(':name', $name); $stmt->bindParam(':value', $value); Now lets