Help to understand please! I am writing a simple sniffer for training purposes, which should record user data (ip, client data, time) in the Mysql database. But in the next section of the code
$query = mysqli_query ($dblink, "INSERT INTO 'data' VALUES ('ip', 'usera', 'date')"); mysqli_query ($query, $dblink); mysqli_close ($dblink); An error occurs
Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in C:\OpenServer\domains\php.loc\include\sniff.php on line 14 $ dblink variable is a connection to the database itself, and moved to another file. It connects to the database successfully, but when the script is run, this error occurs.