API16:JDatabaseMySQL/test
From Joomla! Documentation
Description
Test to see if the MySQL connector is available
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 />