ADXL 345 & Adafruit SD data logger_ how to merge the two working codes together?

Please edit your post, and get rid of the glow, it hurts my eyes. Then put the the code in ... tags, by selecting it and clicking the '#' button. That will stop smileys appearing.

Then fix your caps lock key, it seems to be stuck on.