I manually execute a query and copy paste the output to an editor.Now it is well aligned like:
Hi,
This is sample data.
Thanks.
If I stored the output of the query in a php varibale and print it using echo command it is not aligned. It looks like
Hi, This is sample data. Thanks.
Is it possible to print the output as it is in php?
you need
<pre>tag for that. but I suggest you should format it with proper html