I have connected to the mysql database successfully using the demo in this topic http://www.b4x.com/android/forum/threads/connect-android-to-mysql-database-tutorial.8339/#content
I can successfully retrieve, edit and update the existing information. I have not figured out how to get the max value from a field and insert the max value + 1 into an edittext when adding a new record.In other words, I can't figure out how to display the value in an edittext.
I am thinking the select command is similar to the one below but I am confused on exactly how to display it.
ExecuteRemoteQuery("SELECT MAX(number) as max_number FROM members", Get_Max)
I can successfully retrieve, edit and update the existing information. I have not figured out how to get the max value from a field and insert the max value + 1 into an edittext when adding a new record.In other words, I can't figure out how to display the value in an edittext.
I am thinking the select command is similar to the one below but I am confused on exactly how to display it.
ExecuteRemoteQuery("SELECT MAX(number) as max_number FROM members", Get_Max)
Last edited: