mysqli_query
excepts 2 parameters, the first variable is mysqli_connect
equivalent variable, the second one is the query you have provided
$name1 = mysqli_connect(localhost,db_username ,db_pswd ,db_name );
$name2 = mysqli_query($name1,"INSERT INTO `counter`.`hits` (`page_hits`) VALUES (1)");