Line 3
$con=mysqli_connect("server","db","user","password");//establish connection
Change "server" to your host address or maybe "localhost"
my assumption is your database name = "db" , your user = "user" and user's password = "password"
if not just change into correct db name, user and password