Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2 years ago
Size: 274 bytes
 

Contents

Class file image Download
<?php
require_once('db-config.php');
require_once(
'db.class.php');

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

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