Sqllite DB Problem
I have created a Script that Will add and Subtract Users from an Sqllite Db the db is called test.sqlite I Get 2 errors upon running the script
<script src='http://pastie.org/1028962.js'></script>
The Main Script Script is:
<script src='http://pastie.org/1028963.js'></script>
The Sqllite Code is:
<script src='http://pastie.org/1028952.js'></script>
I am new to Sqllite and Titanium so Any help is appreciated and I thank you in Advance. The Script Works just fine when i run it in my test Server it just wont work when i hit the Package and test Button in Titanium.. Thank you
4 Answers
-
I don't believe we have SQLite support enabled in our PHP build. You may instead
want to use our Titanium.Database interface instead. -
Will Somebody please give an Example for this instead of just pasting the link to titaniums db and How do i In fact access it give an example that creates a table and adds an ID,User,Password for Collums. Do not point me to Kitchen Sink because I have tried and it does not work for me at all I cant get the Android or Iphone Sim working
-
Okay I did a bit of investigation and this SQLite extension should be built into our PHP build.
I did a quick test on OSX and was able to call the sqlite_open() method just fine.I think the issue is the dl() call at the end of your file. Do not use that method.
-
That worked But Know I have an error with the opening
Fatal error: Call to undefined function sqlite_open() in C:\Users\Admin\Desktop\Raproductions_Inventory\Raproductions_Inventory\dist\win32\Raproductions_Inventory\Resources\Add_Delete_User.php on line 131