I have a simple .csv file and wrote a little php file to import it into a MySQL table; however, one field needs to be password hashed and I am having trouble with the syntax to do this...
Here is what I tried:
But, needless to say; I have issues...
Could somebody kindly help me out here with my syntax???
TIA,
-A
Here is what I tried:
Code:
$result = mysql_query("LOAD DATA
INFILE '/path/file.csv'
INTO TABLE users
FIELDS TERMINATED BY ','
ENCLOSED BY '\"'
(`user`, password(`password`))
");
Could somebody kindly help me out here with my syntax???
TIA,
-A