Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have php web site
because most of our users are offline most of the time,i try to develop C# application that user can enter data on it and save it to local database and sync it with php website when they connect to internet
how can i do this?
try to use mysql with c# app?
use web-service?
use REST api?
use JSON?

What I have tried:

do not decide how to implement this
Posted
Updated 7-Sep-16 18:37pm
Comments
[no name] 7-Sep-16 8:39am    
And how do you suppose that we can answer this? We can't possibly teach you programming and program architecture in a forum posting. Especially when we, the complete strangers on the internet, don't know anything at all about your project....
johannesnestler 7-Sep-16 10:38am    
amen
AminMhmdi 8-Sep-16 2:57am    
i can do programming lol! my problem is 'way of doing this'??
i know i can do it in vary way ,but what is best choose!i dont need teach programming

1 solution

I think it does not much matter whether you use MySQL or SQL Server or some other storage. You might be able to use XML or a text file such as CSV. That depends on the complexity of the data and the volume. When I say complexity, if it would be multiple tables in a database then that is more complex than a single table.

You could write a desktop application that stores the data of course and then it could export the data to a text file or multiple text files. If multiple text files then the application could zip the multiple files into one. Then when they connect to the internet, they just upload the file and then you process it. You might want to have a way to ensure the data is processed once and only once.
 
Share this answer
 
Comments
AminMhmdi 8-Sep-16 2:55am    
tnx for replay ,i want to use encryption ,is simple XML file enough??
my web app can import and Export xls file

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900