Can u plz tell me the code for rfid based attendance system using AT89S52.plz...
No.
I can't because your specification is far & away too vague for it to be even possible.
And I wouldn't because I don't give code away for free.
If you want free code, you could at least put in the effort to do the googling yourself!
www.lmgtfy.com