(no subject)
Jul. 14th, 2010 08:51 pmPHP/MySQL question.
There is a tab-separated file that contains, among other things, true/false values.
I run this from the command line:
The true/false values are updated fine.
I do the exact same damn thing from PHP, and all true/false columns are set to false.
What gives?
[eta] Same if I run this in PHP:
WRYYYYYYYy
There is a tab-separated file that contains, among other things, true/false values.
I run this from the command line:
mysqlimport -v --fields-terminated-by='\t' --fields-optionally-enclosed-by="'" --lines-terminated-by='\n' --user=user --password=password dbname filename.csv
The true/false values are updated fine.
I do the exact same damn thing from PHP, and all true/false columns are set to false.
What gives?
[eta] Same if I run this in PHP:
mysql_query("LOAD DATA INFILE '$file' INTO TABLE table_name FIELDS TERMINATED BY '\t' ENCLOSED BY \"'\" LINES TERMINATED BY '\n'");
WRYYYYYYYy