I'm wondering if it is possible to add information to a database using an app developed in the mobincube platform, the idea is to create an application for android devices that let the user input some data, which should be saved to an online database, the problem is that when trying to do it using phpMyadmin or sqlite, this won't save any information, the app and coding doesn't show any error message, does anyone know why this happens? is it because those are local databases that are in the computer while the app requires a remote database connected to it?
Related
Im currently developing a system using PHP and MySQL, what is required of the system is that it should allow the user be able to access the database on a standard GUI online (web browser) and should also be able to access the database offline, now can anyone help me with a method of how to make this possible.
The idea i have right now (me thinking out of the box) is using local host database manager like xampp which will be offline and an online database manager were the system will be hosted but cant figure out how will both databases be synchronized so that they stay the same.
If you want to have two databases maybe you will have to use a mirroring system. This one, wil help you to mantain the database syncronized with the database of the server with the local or not accessible database. You also can have a look at this link for more information Right way to mirror a PHP/MySQL setup
I am sorry if this is the wrong stack exchange, if so please redirect me.
I am very much in doubt about how I go about the following, and I can't really seem to google my way to a solution, so here goes:
Let's say I have a website which basically only consists of a search bar, which I want to link up to a database which every user can search in. In addition to this I want to be the only one who can actually add new data to this database.
To do this, would I basically "just" buy a website domain, make some SQL query hookup to a database that I rent from fx Microsoft Azure? Then whenever people would search for a string the website would query the database and return any relevant information.
Is this the correct way to go about this issue?
For your scenario, I would suggest you use Azure App Service MySQL in-app, which has a cool feature for Web developers to create Web applications that use MySQL. You don’t need to provision a database explicitly as during the creation of the web app when using this feature.
For more details, please refer to Announcing MySQL in-app for Web Apps and Create a PHP web app in Azure.
This topic has been raised a few times but even after searching and going through suggestions I haven't found a solution.
I have a PHP based website and an Android app that has to use the same database. The database is for an objective type test. The questions are created on the web using an admin panel.
The Android app needs to work offline so there is a need for one time sync when internet is available.
I have created a table in PHPMyAdmin called "database version". The Android app checks the database version using a web service. If the the version number is different it should be able to download the latest version of the database of the website and store it locally for offline access.
One of the suggestions I've come across is to convert the .sql database into .sqlite and give the download link of .sqlite to the Android app. However, converting .sql database to .sqlite using PHP doesn't seem to be easy. I've come across some shell script method but with no knowledge about that it probably doesn't work for me.
So, I'm looking for way to make sure the Android app can use the same database of the website but only require internet connection for syncing otherwise the app will work offline.
Would appreciate if I could get some directions and advise as to how to accomplish this.
Thanks!
Actually, I'm not sure If I would choose a solution that "replaces" the database when your app gets back online. I think I would build a database on the Android (SQLite), and synced with the Webdatabase (MySQL) row by row, by comparing datastamps.
I am developing an application that needs to send data to a server so that the server data can be outputted on a website table.
My question is how is it done? I already know how to create tables and whatnot, but when a user creates an account on the phone application, how is it going to appear on the table on phpmyadmin?
# Zarathuztra convenient phpmyadmin is a tool to manage MySQL databases.
What you need is a script on the server that receives the requests from the smartphone is making special thinks inside. Save or manipulates the data in the database and sends the result back on to the phone. This is not the opinion, we can teach you on StackOverflow, sorry.
Watch out for cloud database services to your problem on the internet or ask are PHP-coder for help.
I'm trying to write an Android Registration and Log in system. I looked at the code here https://github.com/andreipop/Android-Login-App as a reference. The data was saved in sqlite in that example. I was wondering how could I transfer the database to my server? probably use php with mySQL? Thanks,
you have to know a little bit of mysql and also have knowledge of PHP, you can go to 000webhost.com and create an account which lets you host websites with access to mysql for free.There you can easily test your code in php & mysql for free.