Posted By

lfatr on 07/15/10


Tagged


Versions (?)

easy create sqlite db in php


 / Published in: PHP
 

  1. $db = new PDO('sqlite:/tmp/dbname.db');
  2. ...
  3. $db -> query("CREATE TABLE IF NOT EXISTS users (iphash VARCHAR(32),timeadded INTEGER,content TEXT)");

Report this snippet  

You need to login to post a comment.