SQLite

Communicate with SQLite Using PHP

SQLite being a serverless database system included in PHP 5.
Using SQLite you can access local files as if they were databases and have a full set of standard SQL functions. SQLite comes prebundled with PHP 5; however, it is not enabled by default.

Here we will discuss a PHP script that connects, inserts new data, retrieves data, and closes the connection to our example database.

First let's create SQLite tables using PHP

<?php
// Open the database:
if (!($db = sqlite_open('example.db'))) {
    // Handle errors
    die('SQL ERROR: Open failed: ' .

Cumulus Tag Cloud

Kiran Says

I love work environment which is:

Informal yet professional
Demanding yet rewarding
Challenging yet inspiring
Mediocrity is not an option
Having fun is serious business
Making mistakes is human
Forgiveness is Company Policy

Travelling Sucks