I have an SQLite database made using the SQLite port in Sencha Touch (here) and the database name is "cars" without the quotes and the table inside it is called "cars_table" without the quotes.
I am able to read/write/update the SQLite table perfectly fine in javascript and when I look at the "Cookies/Local Storage" page on google chrome I see that I have the database under my domain set with the correct database name.
I am however completely unable to read it or write to it from PHP. I have PHP 5.3 and when checking phpinfo() I have SQLite ready to go.
Any ideas?
My basic PHP code is just:
$dbhandle = sqlite_open('cars');
$query = sqlite_query($dbhandle, 'SELECT * FROM cars_table');
$rows = sqlite_num_rows($query);
echo $rows;
Errors in PHP:
Warning: sqlite_query(): no such table: cars_table in /var/www/manage/testall/www/thesqlite.php on line 6 Warning: sqlite_num_rows() expects parameter 1 to be resource, boolean given in /var/www/manage/testall/www/thesqlite.php on line 7
Edit 2:
When searching to list the table names using sqlite_master I am seeing 0 tables. So the error could be in the database name (in which case I am missing how the sencha touch app is naming it).