Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

pdo mysql insert

<?php
$pdo = new PDO('mysql:host=localhost;dbname=test', 'username', 'password');
 
$statement = $pdo->prepare("INSERT INTO users (email, vorname, nachname) VALUES (?, ?, ?)");
$statement->execute(array('info@php-einfach.de', 'Klaus', 'Neumann'));   
?>
Source by www.php-einfach.de #
 
PREVIOUS NEXT
Tagged: #pdo #mysql #insert
ADD COMMENT
Topic
Name
2+2 =