I am new to this and have written a small html5 program to write a shopping list. I want to be able write my list on home or the work computer and view it from my phone or ipad later.
i have server space at 000web site and they have mysql and i have set up a table with three fields item number, product and quantity.
Is there any way html5 can read from and write to the database directly, or do I have to communicate with say a PHP server script to do that?
If i just had my shopping list stored as a text file on my server would I be able to read and write to it with html5 code directly
if I write a php server based script to load the shop list into an array will my html code be able to see it? What Im asking really is if variables can be global or do I have to pass the array back as a parameter to my html5 code (if that is even possible)
The php file will read your shopping list information and than generate the html page with that info embedded into it (normally as a table) that you will see in your browser. I will send you email, not today.
if you want to store data centrally for many devices to use and share, you need a web server or some sort. this is not the same as a server-application. just webspace is enough to share with everyone.
if you want to save the info from any device, you'll need a server application.
you can use free server offerings like google spreadsheets's forms, or build a simple php relay to save the data on a server you control.
knowing your options, zoom in on what looks interesting to you and your available tools and skills, and ask here for more specific help.
__________________ my site (updated 5/13) STATS (2013/5) HTML5:90.2% MOB:15.2% IE7:0.5% IE8:8.4% IE9:8.5% IE10:8.5%