what /where is error ?

include("config.php");
class database
{
    global static     $host    = $c['server']['name'] ;
    global static     $user    = $c['server']['user'];
    global static     $pass    = $c['server']['password'];
    global static     $port    = $c['server']['port'];

     public static function connection()
        {
            self::$host    ;
            self::$user    ;
            self::$port    ;
            self::$pass    ;
            
            do
                {
                    $link    = mysql_pconnect(self::$host.":".self::$port, self::$user, self::$pass) or die (mysql_errno()." : ". mysql_error()); ;
                }
            while ($link == false);      
        }
}    
$db= new database;
$db->connection();

What's PHP telling you when you run the code?

Parse error:  syntax error, unexpected T_GLOBAL, expecting T_FUNCTION in x.php on line 23

Which line is line 23?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.