Your code is:
<?php
$mysqli=mysqli_connect('127.0.0.1','user','','table') or die(mysqli_error($mysqli));
?>
You must to connect do database before try table
<?php
$mysqli=mysqli_connect('127.0.0.1','user','','DATABASE_NAME_HERE') or die(mysqli_error($mysqli));
?>
If this still doesn't work, try to set some password, '123' for example, and try connection again. I recommend you to use mysqli class:
$some_variable_name = new mysqli('server_name','user_name','password','database_name');
$some_sql_command = "your SQL without ; at final";
$some_variable_name->query($some_sql_command);
$some_variable_name->close();
Go to php.net manual and see all commands.
I'm not an expert in configs, .ini files and these things, so I can't tell nothing about the modified IP.