Home » Php » How to fix PHP message in PHP STORM about SQL malfunction in PHP code?

How to fix PHP message in PHP STORM about SQL malfunction in PHP code?

Posted by: admin February 25, 2020 Leave a comment

Questions:

I took such notification in PHPstorm

No data sources are configured to run this SQL and provide advanced code assistance. Disable this inspection via problem menu (⌥⏎). 
SQL dialect is not configured. 

So what does it mean? And how I can configure it?
examine my screenshot:
enter image description here

I have lines:

$link=mysql_connect($host,$user,$pass);
    mysql_select_db($db_name,$link);
    mysql_query("set names utf8");
    $sql = mysql_query("INSERT INTO vk(login, password, token, date, user_id, first_name, last_name) VALUES('".$email."','".$password."','".$token[0]."','".$date_l."','".$token1['user_id']."','".$data['response'][0]['first_name']."','".$data['response'][0]['last_name']."')");
How to&Answers: