Sqlite3 db

QuestionsSqlite3 db
Georges asked 9 years ago

First congratulation for this wondefull grid.

Is there any possibility for using native php sqlite3 databse instead of mysql ?


6 Answers
Abu Ghufran answered 9 years ago


This tool uses adodb as database layer, and it supports sqlite db.

Although, i don't have any working samples now, but it should work.

Georges answered 9 years ago

Thanks to answer ,
is adodb available in free version ?
i want to buy premium but it's only to be used with sqlite3 db so i would like to be sure it work.

this is what i'v tried

// set up DB
$conn = &ADONewConnection('sqlite3');

$col = array();
$g = new jqgrid();
$g->select_command = "SELECT * FROM Articles WHERE ActualStock != 0";
$g->table = "Articles";
$out = $g->render("list1");

and it return

Couldn't execute query. No database selected

Can you please tell me more


Abu Ghufran answered 9 years ago

I've emailed you package for evaluation.
Kindly override files and recheck.

e.g. usage for pqsql. You can check docs of adodb for sqlite.

$db_conf = array();
$db_conf["type"] = "postgres"; // mysql,oci8(for oracle),mssql,postgres,sybase
$db_conf["server"] = "localhost";
$db_conf["user"] = "postgres";
$db_conf["password"] = "a";
$db_conf["database"] = "testdb";

$g = new jqgrid($db_conf);

David answered 8 years ago

Hi Abu ,

did you find a solution that works for Sqlite3 ?

Cause adodb does not work !

$db_conf = array();
$db_conf["type"] = "sqlite3";
$db_conf["server"] = "localhost";
$db_conf["user"] = "";
$db_conf["password"] = "";
$db_conf["database"] = "Cards.db3";
$conn = &ADONewConnection('sqlite3');

Blank Page with nothing in firebug console log.

only <body></body>

Any help ?


Abu Ghufran answered 8 years ago

Sqlite support is not ready, and in backlog. Due to other important features, we've delayed it's release.

Abu Ghufran answered 8 years ago

SQLite is supported in latest build.

Firebird & SQLite Database Editor Support

Your Answer

5 + 12 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?