Forum Moderators: coopster
I am not a php pro.. And, I never had to come up with this solution..
I created a php code to parse, data from mysql.. Ok, it all works great.. The php output needs to be able to copy paste into a spreadsheet..
So, I need to TAB the text on the output, so I can copy paste into a spreadsheet,, and the spreadsheet recognizes the columns..
So I need the php code, to make the text to show the TABs and NEW LINES on the output.. Is there any?
Also, if someone says use the escape characters \t and \n, as a solution.. GRRR... This is the only information I can find on my problem.. They are just for looks(i think),, i've been on this problem for hours..
PLEASE HELP!
[phpclasses.org...]
<pre></pre>
using \t and \n is the correct way, but browsers do not display tabs and newlines, they only display html
If you view source of the page you would have always seen the correct tabs and newlines
the pre tag forced the browser to show the text as it is formatted without html
another option is you could create a file for them to save ;)