More details required. Which wallet you are using? Is the wallet up to date? Synchronized?
i just closed electrum and launched it again and then the coins appeared. i didnt know i have to restart electrum wallet after every transaction. but this is good to know! thank you!
You don't. Electrum automatically downloads the necessary blockchain data on your wallet everytime you leave it open or you're connected to a network. It consumes a little bandwidth to fetch all those data for your balance and transactions to appear.
no it was green. But i was in airplane mode yesterday by mistake(a key on my keyboard switches to airplane mode) so maybe that effected it. but it was green when i looked at it.
That explains it. The connectivity indicator would turn green if you are connected to the internet
and leave your Electrum wallet open, but that doesn't mean it's synchronized at all times.