colonymech / docs / www / colonyscout / internal / jeditable / php / config.php @ f59acf11
History | View | Annotate | Download (376 Bytes)
1 |
<?php
|
---|---|
2 |
|
3 |
error_reporting(E_ALL ^ E_NOTICE); |
4 |
|
5 |
try {
|
6 |
$dbh = new PDO('sqlite:/tmp/editable.sqlite'); |
7 |
} catch(PDOException $e) { |
8 |
print $e->getMessage(); |
9 |
} |
10 |
|
11 |
/* Create table for storing example data. */
|
12 |
$dbh->exec(' |
13 |
CREATE TABLE config (id INTEGER primary key,
|
14 |
token VARCHAR(255),
|
15 |
value TEXT,
|
16 |
date DATETIME)
|
17 |
');
|