I am trying to insert some e mails from a text file into MySQL database, some of them are getting inserted properly but some of them are not.
My approach to implement this is like.
$query = "LOAD DATA LOCAL INFILE 'email-list.txt' INTO TABLE $tablename FIELDS TERMINATED BY 'r'(email)";
$result = mysqli_query($connection, $query);
some emails that are not inserted properly are like.
xxxx7@yahoo.com
xxx_xxxxx05@yahoo.com
These get inserted like.
x
xxx_xxxxx
Please see what is wrong in my approach and suggest any possible approach to do this properly.
This…
Did you mean…
???
THE DOCS