smf_db_initiate
Description
Sets up all of the "$smcFunc['db_" variables and values.
Syntax
mixed smf_db_initiate ()
Return value
Expected type: Mixed
Description:
Possible types | |
Allowed values | Description |
Null | Returned if the connection failed and $db_options['non_fatal'] is true |
Resource | If connection was successful, returns $connection, a MySQL connection resource |
Notes
- Sets up all the $smcFunc functions and variables for MySQL databases
- Actually connects to the database
- Returns null or dies with an error if there's a problem connecting, depending on $db_options['non_fatal']
- Returns $connection, a MySQL connection resource, if connection was successful