CI_DB_driver::db_connect()

db_connect($persistent = TRUE)

Parameters:
  • $persistent (bool) – Whether to establish a persistent connection or a regular one
Returns:

Database connection resource/object or FALSE on failure

Return type:

mixed

Establish a connection with the database.

Note

The returned value depends on the underlying driver in use. For example, a mysqli instance will be returned with the ‘mysqli’ driver.

doc_CodeIgniter
2016-10-15 16:31:04
Comments
Leave a Comment

Please login to continue.