API16

API16:JDatabaseMySQL/test

From Joomla! Documentation

Revision as of 22:40, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Test to see if the MySQL connector is available <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JDatabaseMySQL/test|Edit Descripton...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Test to see if the MySQL connector is available

[Edit Descripton]

Template:Description:JDatabaseMySQL/test

Syntax

test()


Returns

boolean True on success, false otherwise.

Defined in

libraries/joomla/database/database/mysql.php

Importing

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

Source Body

public function test()
{
        return (function_exists('mysql_connect'));
}

[Edit See Also] Template:SeeAlso:JDatabaseMySQL/test

Examples

<CodeExamplesForm />