Hi Malkom... could you help me out with the basic beginning steps of writing a sq-lite database file?
I have experience in php/mysql... so the concept is clear, but implementation or even making a simple sq-lite db file prooved too difficult for me
sorry... thought I was smarter hihi
I looked at the recent help file (v1.16) and looked at the "8 how to" (blog) but could you help me with these steps?
1a. If the HAC application starts it has to look if the database file exists, if so, open it... if not create it (after which it will be open)... I guess I should setup this code into the script and then the main code of HAC (at the StartUp location)?
1b. Create database file in root of app, create table (creating tables with rows, primary key, auto increment I know). I saw the example database project but it didn't save ... so it was a little puzzeling how this works.
2. read database file and extract information via statements... I know how this is accomplished via MySQL queries and/or PHP statements (for example if then functions) but is there a list of statements or queries I can use in HAC in combination with SQlite??? During my php exam writing good mysql queries was one of the most difficult parts of the education, is this also true for SQlite? I know if you manage to write good queries you have a very powerfull tool at your side.
My first goal will be to insert text from a table-cell into the app for every page and to implement a save location feature that will 'look' at the hac page the user last visited. After the user ends and starting the app up again it would automatically go to this location (save state). I already made this with a flatfile but this should also be possible with SQlite I guess.
Well that's about it. Sorry that I have so many requests and questions. I do appriciate all your help
With kind regards, Jeroen