PHP Classes

File: demos/demo2.php

Recommend this page to a friend!
  Classes of Giovanni Ramos   PDO4You   demos/demo2.php   Download  
File: demos/demo2.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PDO4You
Access SQL databases using the PDO extension
Author: By
Last change: Update of demos/demo2.php
Date: 6 months ago
Size: 415 bytes
 

Contents

Class file image Download
<?php
// Loading demo class
require 'DemoCRUD.php';

// Example with Insert, Update and Delete
echo '<h2><a href=".">DEMOS</a> &rsaquo; INSERT/UPDATE/DELETE</h2>';

// Creating an instance
$demo = new DemoCRUD;

// Example with inserting multiple records
$demo->multipleInsert();

// Example to update multiple records
$demo->multipleUpdate();

// Example with multiple exclusion of records
$demo->multipleDelete();