Send DATA to database from arduino (not local database)

Think you for answering me ,
I want to know how can i receive the state of a led that i turn on from a website
How to connect the led and what's the code ?
I use digitalRead , analogRead ?
Think you