PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Paul Kevin   PDO Database Utils   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example usage
Class: PDO Database Utils
Execute SQL queries using PDO
Author: By
Last change:
Date: 11 years ago
Size: 274 bytes


Class file image Download

//Initialize Database
$db = new DB();

$sql = "INSERT INTO `users`(`name`, `address`, `email`) VALUES (?,?,?)";
$values= ('Test User', 'P.O Box', '');
$db->insert($sql, $values);