MENU
.net Powerful JavaScript charts

The SQLite Editor for PHP administration tool

The SQLite Editor for PHP is an administration tool for managing your SQLite databases that you can use to give your users the ability to view, edit and update your database without the danger of them destroying your data.

Introduction

The SQLite Editor for PHP is an administration tool for making interfaces to your SQLite database tables. It's not a full database administration tool however. You cannot use it to add, modify or delete tables, views etc. You wouldn't give such a tool to your users, allowing them to destroy your database! It's a tool that allows the addition, editing and deletion of data in existing tables. Adding, editing and deletion can all be enabled or disabled so you can turn them all off and just allow viewing the data if you wish.

It can be easily integrated into your pages - as you can see from the example below. It's just a single library file which makes it simple to setup and go.

Example

  help
Displaying 1 - 10 of 14
1  2  
ID
Username
Created
Forename
Surname
1525
Oglaf
2026-07-03
john
Billingham
1526
sinners
2026-07-18 14:28:00
Steven
Sinner
1528
cosbv
2026-06-13 12:45:19
pppp
Cos
1529
jasond
2026-06-13 12:45:19
Jason
Dunny
1531
englaisesh
2026-06-13 12:45:19
Hoolio
Englaises
1532
myersm
2026-06-13 12:45:19
Michael
Myers
1533
krugerf
2026-06-13 12:45:19
Freddy
Kruger
1535
jerryb
2026-06-13 12:45:19
Alffs
Garnet
1536
knollj
2026-06-13 12:45:19
Jays
Knoll
1537
duckworthv
2026-06-13 12:45:19
Vera
Duckworth
 (add/edit/delete are disabled on this demo)

And here's the source-code that produces the editor above.

<?php
    $editor = new SQLiteEditor([
        'filename'     => 'examples/sqliteeditor.db',
        'table'        => 'accounts',
        'sql_select'   => "SELECT id,
                                  username,
                                  created,
                                  forename,
                                  surname
                             FROM accounts
                            WHERE {where}
                                  {order}",
        'sql_add' => false,
        'sql_delete' => false,
        'paging_perpage' => 10,
        'columns_names' => [
            'id'       => 'ID',
            'username' => 'Username',
            'created'  => 'Created',
            'forename' => 'Forename',
            'surname'  => 'Surname'
        ],
        'styles' => [
            'div.editor table {line-height: 25px;}',
            'div.editor table th {text-align: center;}',
            'div.editor table tbody tr:hover {background-color: #eee;}'
        ],
        'actions' => [
            '<small><i>(add/edit/delete are disabled on this demo)</i></small>'
        ]
    ]);
    
    $editor->draw();
?>

Download

This is the latest zip file download that contains the PHP file (it's just a single file) and the example pages. Extract this zip file to a directory on to your (PHP enabled) web server and all of the examples should run without any further modification or configuration.

Download the SQLite Editor for PHP zip file