I have this code:
include "config.php";
if (isset($connect)) {
    echo "connected";
} else {
    echo "not connected";
}
And this is the config.php file:
$localhost = "localhost";
$db_username = "*****";
$db_password = "*****";
$db_name = "*****"; 
If($connect = mysqli_connect("$localhost ","$db_username ","$db_password ","$db_name ")){}or die{}  
I dont know why, but when I try to do some queryIi dont get anything
$sql="SELECT * FROM table_name ORDER BY column_name ASC";
$query=($connect,$sql);
While($row = mysqli_fetch_object($query)) {
    Echo $row>column;
}
the error is:
 Parse error: syntax error, unexpected '}' in /path/index.php on line 6
 
     
    