CakePHP basic table


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. CREATE TABLE posts (
  2. id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
  3. title VARCHAR(50),
  4. body TEXT,
  5. created DATETIME DEFAULT NULL,
  6. modified DATETIME DEFAULT NULL
  7. );

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.