MySQLi line like this:
$sqlQuery = "INSERT INTO '$this->dbTable' (url, name_surname, phone, city, category) VALUES('$contents[0]', '$contents[1]', '$contents[2]', '$contents[3]', '$contents[4]')";
Not:
$this->dbTable = 'crawler_data';
But above line does not work. MySQL does not accept. When I change line like this:
$sqlQuery = "INSERT INTO crawler_data(url, name_surname, phone, city, category) VALUES('$contents[0]', '$contents[1]', '$contents[2]', '$contents[3]', '$contents[4]')";
It's working!
How can I set MySQL table name from out?