save dynamic value come from sensor to database

i user EtherCard to save data to database and every thing is goo if i sent fixed value in link as below

 ether.browseUrl(PSTR("/ardu/Default2.aspx?occupation="), "123", website, my_result_cb);

but when i try to replace fixed val with dynamic value come from sensor it was sent blank value to database

    int power = 200; // fill that with your value
    char test[10] ;
    snprintf(test, 10, power);
    Serial.println("Test=");
    Serial.println(test);

    ether.browseUrl(PSTR("/ardu/Default2.aspx?occupation="), test, website, my_result_cb);
    int power = 200; // fill that with your value
    char test[10] ;
    snprintf(test, 10, power);

How many arguments does snprintf()? What are they?

int snprintf ( char * s, size_t n, const char * format, ... );

So, you told snprintf() to write to test, not more than 10 characters, using 200 as the format, with no value to be formatted.

What do you expect test to contain, then?

thank for your replay PaulS

can you please correct my code

can you please correct my code

Yes. I fired up the IDE and fixed it. Works great now.

Of course, I KNOW how to use snprintf(). Apparently you don't. Mr. Google has all day to help you learn. I don't.