Login   Register  
PHP Classes
elePHPant
Icontem

File: example-database.sql

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Unay Santisteban  >  Database PDO Abstract Layer  >  example-database.sql  >  Download  
File: example-database.sql
Role: Auxiliary data
Content type: text/plain
Description: Example of Database
Class: Database PDO Abstract Layer
Run queries with PDO and get results in XML, JSON
Author: By
Last change: Update example-database.sql
Update example-database.sql
Date: 6 months ago
Size: 245 bytes
 

Contents

Class file image Download
CREATE TABLE ts_users (
  id int(5) NOT NULL AUTO_INCREMENT,
  name varchar(20) DEFAULT NULL,
  surname varchar(30) DEFAULT NULL,
  PRIMARY KEY (id)
) ENGINE=InnoDB;

INSERT INTO ts_users VALUES
  (1,'Walter','White'),
  (2,'Sheldon','Cooper');