How can i do this ? ( data to PHP server and backwards )

Put your problem here if it does not fit any of the other categories.

How can i do this ? ( data to PHP server and backwards )

Postby Cumatru » Sat Mar 12, 2011 4:40 am

I have a PHP website using a MySQL database and i want to make an Android application which will use the data from my website database.

As far as i read, XML files are commonly used for getting data to an Android device.
The problem is generating the data for the phone and sending it back from the phone.

Generating data from PHP:
- some XMLs will be pregenerated, so i will access a XML file directly
- other will have to be "rendered" by accessing a PHP file ( can i do this ? how ? ) which will generate an XML file

Sending data back to PHP:
- let's say that a user writes a comment on a specific item, how can i send it to the PHP engine so it can be written in the website MySQL ?

Any other suggestions are welcomed !
Cumatru
Junior Developer
Junior Developer
 
Posts: 11
Joined: Sat Mar 12, 2011 4:19 am

Top

Re: How can i do this ? ( data to PHP server and backwards )

Postby Cumatru » Mon Mar 14, 2011 10:00 pm

I've already used SAX Parser for the XML from the website, but i didn't sent any data back.
I think i will send data back using JSON.
Cumatru
Junior Developer
Junior Developer
 
Posts: 11
Joined: Sat Mar 12, 2011 4:19 am

Re: How can i do this ? ( data to PHP server and backwards )

Postby jonbonazza » Fri Mar 18, 2011 2:34 pm

jonbonazza
Master Developer
Master Developer
 
Posts: 665
Joined: Thu Jul 15, 2010 2:58 pm
Location: WV USA

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Exabot [Bot] and 9 guests