Here is an example of uploading Json Data to a MySQL database on a website/Server from a Android phone. This is great to upload user data from the phone to a website. The bad thing is that you have to use a different Thread instead of the main UI thread. It fairly simple to multithread even though some examples makes it pretty complicated. Check out my attempted to explain an example of using the Android Thread class.
Tag Archives: website building
I created this form on my graveyard site so users can share their own graveyard. It allows the user create a small profile of the grave yard and upload 5 images to the server. After filling out the form the data will be inserted into a MySQL table to be displayed later on the page they created. The page is created automatically, but I will show how that is done in a separate post. The images are uploaded to a server to be placed in unique folder to be easily displayed. From my past experience it is very important to prevent spam when creating HTML forms. I used Google’s Captcha to prevent the spam. It was very easy to setup and is very effective.
I have the files below that I created. They have examples of:
- Inserting HTML form data into a MySQL Table
- Inserting multiple images into a server using a form
- Using Google Captcha to prevent spam.
I wanted to jazz up one of my sites that had a list links so that it would display a preview of the link. I seen a great tutorial for this but I needed to hack it a little for it to work for me. So I add an ‘name’ attribute to the <a> tag. When the user mouse over the link it grabs the name attribute and concatenate with the image file extension (.JPG). Then I followed the source code from the tutorial and replaced the image. Here is the code and demo.