Custom Plugin For Converting CSV To MySQL

To start with, you need to fix the define of CSV_PATH:

define('CSV_PATH',dirname(__FILE__));

as without that, $handle will be false – no file opened or data read.

…then before you run it take another look becaue $col4 and $col5 are not set anywhere either…

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)