You can download here all scripts described in the HOWTO pages(*).
Warning: these scripts are an explanatory demo to help you understand how to build your first interactive apps step by step. If you want to run these functionalities in production, please download the scripts of the "downloadable modules" section, they are more complete and ways safer (especially for DB access: the "explanatory" scripts make use of deprecated mysql_* functions, to insure a larger compatibility; the "modules" scripts take advantage of the PDO library).
Download:
sample_scripts.zip
- Download zip file, uncompress it and upload all files and folders to your server (ex. http://mysite.com, in a dedicated folder (ex. demo_app).
- Warning: don't forget to customize the config.php file: you must set all variables to values corresponding to your environment (MySQL identifiers, base URL of install folder...).
- In your browser, call install.php to create the necessary tables and insert some sample data in the database.
(given preceding server and folder names: http://mysite.com/demo_app/install.php) - To test the scripts, create a new MVSAppMobile application:
- connect to www.mvsappmobile.com
- create a new app
- for the first tab, select data type "External HTML page" and enter the address of the logform.php script (login form)
Given preceding server and folder names: http://mysite.com/demo_app/logform.php). - fot the second tab, select "List / External data list" and enter the URL of the art_catlist.php script (list of article categories, which then calls the list of articles automatically for the user-selected category).
- same process for the next tabs, create external lists calling the cart_list.php and msg_list.php scripts
- and of course, save your app
- It's done already, you can now test this app on your smartphone!
Just launch the AppMobile application (available for free on AppStore and GooglePlay) and connect with the same identifiers as for mvsappmobile.com portal.
Your app is there. Test it, modify scripts, modify data in the DB, adapt and see the changes on your smartphone... it gives you an easy starting point, now you just have to use your imagination to create the app that covers your needs.
Note: in the test app, sample users are created in the database by install.php: Bob, Tom, Rob, Sam and Jim (with passwords bob, tom, etc.)
(*) The scripts available for download are not exactly the same as the ones built step by step in the HOWTOs, especially because a script described in one HOWTO might be modified / completed in another HOWTO to integrate some newly explained functionality.
For example, the "dynamic lists" HOWTO creates a simple list of articles, where the "User sessions" HOWTO adds a "quantity in shopping cart" info, which induces changes both in PHP code and SQL queries.
These scripts are not supposed to be neither perfectly written nor strictly academic. Their only purpose is to help you understand how you can get the best out of MVSAppMobile possibilities. That's why they are written as simply as possible, focusing on their subject without loosing a line on secondary details, except for a very light touch of MySQL exception handling. They are just a starting base for your own developpments. We decline any liability in connection with any kind of damage resulting of the use of these scripts.