references:joomla.framework:database:jdatabase-__constructTable of Contents
__construct
The constructor for the database class. The construct is responsible for opening a connection to the database and setting any necessary settings. SyntaxJDatabase __construct ( $host, $user, $pass, $db, $table_prefix )
ExamplesExample $host = 'localhost'; $user = 'joomlauser'; $password = 'itsasecret'; $dbase = 'test'; $dbprefix = 'jos_'; $db = new JDatabase( $host, $user, $password, $dbase, $dbprefix ); Discussion |


