Hi
@Enrico Fuoti , thank you for your question and thanks for you interest in SithasoDaisy5. Anytime you need help, Im here to help.
SDUIMySQLREST vs SDUIMySQLE
These are two different approaches to using MySQL and PHP. SDUIMySQLREST is based on
https://github.com/mevdschee/php-crud-api, whilst SDUIMySQLE was built with just normal php. I have however managed to add functionality for one to execute their own SQL statements directly using the SDUIMySQLREST.
Example:
Dim db As SDUIMySQLREST
db.InitializeApiKey(Me, "contacts", Main.ServerURL, "contacts", Main.ApiKey)
db.SetSchemaFromDataModel(app.DataModels)
BANano.Await(db.SELECT_RAW("select gender, count(*) as records from contacts group by gender"))
chartgender.Clear
chartgender.AddCategory("Gender")
Do While db.NextRow
Dim sgender As String = db.GetString("gender")
Dim srecords As String = db.GetString("records")
Dim gPerc As String = app.UI.PercentOf(srecords, tContacts)
chartgender.AddSeriesValue(sgender, gPerc)
Loop
This functionality was extensively used in this example
Developing SithasoDaisy on Tailwind4 and Daisy5. Contribute to Mashiane/SithasoDaisy5 development by creating an account on GitHub.
I will add the functionality you have requested, I was just providing a background.
Thanks again for your kind words. Appreciated.