unable to log data in SD card

hi experts
i am unable to log data in sd card arduino compiler shows no error but in real hardware running error /unable to log data

pls help me

pls help me show my mistake i will try to edit

First, you failed to read the stickies at the top of the forum that detail HOW to post code and to ask questions.

The code does something. At a minimum, it prints messages to the Serial Monitor. You didn't see fit to share them, so helping you is going to be guesswork. I'm not into guessing games.

Fix your original post, to post the code correctly, after using Tools + Auto Format, and reading the stickies. Then, provide as much information about what the code does, and does not do, as you can.