PHP >> SerialCom project using WAMP (locally) (now w/Flash front end)

hi friends... am new to arduino. i am having a big doubt. i am doing a project on nfc shield using UNO. so i want to know when the nfc tags are read by the sheild it should compare the ID of tag with sql server and if matched it should go for next loop... what should i do for that... pleasee help me...