API16

API16:JDatabaseMySQL/connected

From Joomla! Documentation

Description

Determines if the connection to the server is active.


<! removed transcluded page call, red link never existed >

Syntax

connected()


Returns

boolean

Defined in

libraries/joomla/database/database/mysql.php

Importing

jimport( 'joomla.database.database.mysql' );

Source Body

public function connected()
{
        if (is_resource($this->_connection)) {
                return mysql_ping($this->_connection);
        }
        return false;
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples