Okay i am buiding a guitar tab database using php and mysql. Anyway, im wondering how i would store the tabs so they wouldnt wrap or lose thier formatting (and also how to handle line breaks, i know that if you open a linux text file in windows, sometimes it all gets run together)

Basically a tab is like this

G[--------------------------------|
D[------------------7-5-----------|
A[---------3---7\-0-----7-5-------|
E[-(5)---3------------------8-----|x4

I DONT want it to end up like this

G[--------------------------------|
D[------------------7-5-----------|
A[---------3---7\-0-----7-5-------|
E[-(5)---3------------------8-----|x4

See? - if you look, they dont line up due to the font. how do get it to save like daniweb saves code?

Its imperative the font spacing be correct (e.g Courier)

Any tips with regards to how i could do this?

Use <pre> or <code> tags on your output, that's pretty much it. You can do this when you store it but I would highly recommend you do it on output instead.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.