skip to Main Content

Nginx with PHP usage of SQLite throws error

I'm using nginx in docker from trafex/php-nginx But I don't get SQLite working. The following php code <?php $db = new SQLite3('/var/private/anmeldungen.db'); $db->close(); throws this error [error] 9#9: *33 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error:…

VIEW QUESTION

Android Studio – LiveData with sqlite not updating UI

Here is the code for fetching data from sqlite database as livedata private LiveData<ArrayList<Message>> loadAllMessagesOfThisChat() { final MutableLiveData<ArrayList<Message>> messages= new MutableLiveData<>(); ArrayList<Message> messagesArrayList = new ArrayList<>(); SQLiteDatabase mDb = messagesDbHelper.getReadableDatabase(); String[] projection = { MessageDetails.COLUMN_SENDER_UID, MessageDetails.COLUMN_MESSAGE, MessageDetails.TIMESTAMP_ID, MessageDetails.COLUMN_IMAGE_URI}; Cursor cursor…

VIEW QUESTION
Back To Top
Search