-
FAQ
- Forum Search
- Community
- Online Manual
- Support Helpers of the Month
- Function Database
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
Advertisement:- Help | Terms and Rules | Go Up ▲
- Copyright © 2022 Simple Machines. All Rights Reserved.
- Page created in 0.015 seconds with 13 queries.
- Forum Search