Recieving and sending data from and to database in attendance system

I'm trying to receive ID number from database

Receive and send how? Serial, WiFi, Ethernet, Bluetooth, smoke signals? What database?

What have you tried?

Please read the "how to use the forum-please read" stickies for some hints on what we need to know to be able to help you and how to post code.