dvicemuse
dvicemuse

Reputation: 576

Jquery read a Sqlite database that php created

After reading a ton of other questions on the subject I feel as though I should preface this question with: This is not about phonegap or android development

A quick recap on how I have come to this headache.

using var db = openDatabase("catalog.db"); I expected jquery to be able to load this database since the js and the and the database are in the same directory.

it seems as though this function is meant for "Browser embedded" databases and not local databses.

How do I read a sqlite database file and not the browser's database?

Looking for a solution where multiple users are able to see the same response from an offline database. Distribution should be as simple as reading a folder from a flash drive without installing anything.

About to give up on this and just make it a cloud solution instead of an offline solution.

Upvotes: 0

Views: 2295

Answers (1)

Jonas Äppelgran
Jonas Äppelgran

Reputation: 2747

You can't read a sqlite database with javascript. The question What's the simplest way to import an SQLite SQL file into a WEB SQL Database has some answers on importing the database to the browsers database.

Upvotes: 1

Related Questions