<?php
ini_set('display_errors', true); ini_set('display_startup_errors', true); ini_set('error_reporting', E_ALL);
define('ALIAS', 'mvc/www'); define('APP_DIR', realpath('..')); define('APP_URL', 'http://' . $_SERVER['SERVER_NAME'] . '/' . ALIAS); define('DS', DIRECTORY_SEPARATOR); define('DB_DSN', 'mysql:dbname=mvc;host=127.0.0.1'); define('DB_USER', '******'); define('DB_PASS', '******');
/* * CREATE TABLE `mvc`.`employees` ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , `name` VARCHAR( 255 ) NOT NULL , `age` INT NOT NULL ) ENGINE = MYISAM ;
INSERT INTO `mvc`.`employees` ( `id` , `name` , `age` ) VALUES ( NULL , 'nicolas', '27' ), ( NULL , 'sam', '28' );
*/
|