Tab character into text file question
Posted: Tue Jul 08, 2003 11:55 am
I need to output a select statement to a text file..
my fields are supposed to be separated with tabs IE field[tab]field2[tab]field3[tab][newline]
here is how I'm doing my line
I throw all that data into a text field in a database table... then I select * from that table into an outfile.
When I look at the data in the database it looks great field THEN TAB field2 THEN TAB but when I look at the text file it creates its adding the slashes
field\[TAB]field2\[TAB]
any thoughts on why that could be happening?
my fields are supposed to be separated with tabs IE field[tab]field2[tab]field3[tab][newline]
here is how I'm doing my line
Code: Select all
<?php
$content .= $program_id."\t".$orders_id."\t".$order_date."\t\n";
?>When I look at the data in the database it looks great field THEN TAB field2 THEN TAB but when I look at the text file it creates its adding the slashes
field\[TAB]field2\[TAB]
any thoughts on why that could be happening?