Advertisement
Guest User

Untitled

a guest
Jul 10th, 2013
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.17 KB | None | 0 0
  1. <?php
  2.  
  3. $pdo = new PDO("mysql:host=localhost;dbname=database", 'username', 'password');
  4. $query = $pdo->prepare("INSERT INTO users (user,pass) VALUES (:user,:pass)");
  5.  
  6. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement