I'm trying to link arduino mega with a mysql amazon server to read and write information. My overall project will ask users to scan their rfid card, once card is scanned, if it is accepted, I want their information to be uploaded to the arduino from the server so they can select from a list of option i created in the server. From there I want whatever they select to be uploaded to the external database so i can save that information. And once they finished i want them to re-prompted to rescan their rfid card. How would i go about doing so?? I've attached my code below to show you what i have so far.
I don't know what you think that is doing, but it isn't.
while(read_rfid = ok_rfid_1 = ok_rfid_2)
Nor is that.
//setting up input from user
input = Serial.parseInt();
Why not use a keypad to allow users to make an entry?
What, specifically, do you want to store in a database? Where is that database? How will you communicate with it? Typically, the second answer involves a server, and the third answer involves an Ethernet shield.