Login   Register  
PHP Classes
elePHPant
Icontem

Documentation Errors

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PDO Multi Connection Class  >  All threads  >  Documentation Errors  >  (Un) Subscribe thread alerts  
Subject:Documentation Errors
Summary:Some errors in ..._manual.php
Messages:1
Author:Jay Lepore
Date:2013-01-01 21:44:17
 

  1. Documentation Errors   Reply   Report abuse  
Picture of Jay Lepore
Jay Lepore
2013-01-01 21:44:17
Line 65 Create Table. Your code missing 'primary key'. Fails to create table because auto_increment requires primary key notation.
CREATE TABLE TB_USERS (
ID INT(11) NOT NULL AUTO_INCREMENT primary key,
NAME VARCHAR(100) NOT NULL,
ADDRESS VARCHAR(100) NOT NULL,
COMPANY VARCHAR(100) NOT NULL
);
---------------------------------------------
Implement Transactions
Fails because $db->disconnect(); appears above Transactions tutorial. Moved this $db->disconnect(); line to the bottom and all is perfect.

Jay
CompuMatter