Christiaan
Christiaan

Reputation: 45

Is it possible to access the same sqlite database with php and javascript?

Php is able to find the database i created with javascript, but php is unable to find the table and (therefore the data) i made with javascript.

Opening db in php

$dbhandle = sqlite_open('db.sqlite', 0666, $error);

Opening db in javascript

db = openDatabase('db.sqlite', '1.0', 'db.sqlite', 65536);                          

I hope i provided enough information, if more code is required please let me know.

Upvotes: 0

Views: 189

Answers (1)

David Houde
David Houde

Reputation: 4778

Javascript is client side, while PHP is server side.

You will need to keep seperate databases and sync them

Upvotes: 2

Related Questions