You still haven't fixed the issue I noted in my last post. the mysqli_query() function does not work exactly like the mysql_query() function. You must pass a connection object as well as the query, where as you are only passing the query. Again, here is a link to an example and explaination of mysqli_query(): http://www.w3schools.com/php/func_mysqli_query.asp
In your config.php file you need to make a mysqli connection and store it in a variable, like so:
$con = mysqli_connect("SERVER ADDRESS", "USERNAME", "PASSWORD", "DATABASE NAME");
Also be sure to check for a failed connection (the link earlier in this post shows an example of that).
Once you have the connection stored you must add it to your mysqli_query() function as the first parameter.
$result = mysqli_query($con, $sqli) or die (mysqli_error());
And just as a general note, again, mysqli functions are not exactly the same as mysql. Anywhere in your code where you were once using mysql functions and have updated, please make sure you properly update all of the functions as some of them require different parameters (as was the case here).