Question: I created a CRM Saas for my client using PHP, jQuery and HTML.

Recently my client has some issues with his network in the office and all the business is shuts down because the CRM is not working while the network is off,

I want to create a solutions for situations like this,

for example i thought that maybe i will create a local copy of the crm and i will make a sync between the database in the server and the local database and in the moment that the network will be down i will redirect the user to the local copy of the CRM

and when the network will run again i will sync the local DB to the server DB and redirect the user to the CRM that is on the server.

but i have 1 issue with this solution,

i dont want the user to have the source files of the CRM,

is there any why to secure this files from him?

thank you!

Answer: 
You are overwriting the last value by every new iteration in the for loop 

do instead this:
put all the element in the array in one variable (use a StringBuilder)
and then when that is done, set the content of the label with that variable

Example:
========

```
var sb = new StringBuilder();

foreach (Object num in number){
    sb.append(num);
}
Label5.Content = sb.ToString;

```

Edit
====

adding comma to separate the values:

```
var sb = new StringBuilder();
var comma = ""; 
foreach (Object num in number){
    sb.append(comma).append(num);
    comma = ", ";
}
Label5.Content = sb.ToString;

```
If you want to display the text a user has entered into a `textbox`, why not assign it directly

```
label5.Text = textbox.Text; 

```

The way you want to do it, to set it from an array you can do it like this: 

```
private static void Display(params Object[] things)
{
    foreach (Object num in number)
       Label5.Text = Label5.Text + String.Format("{0}, " + num);
}

```

I don't quite understand though why you pass an array ob objects into the method if you don't use them.