Db title: Difference between revisions From Online Manual

Jump to: navigation, search
(Created page with "{{smcfunc |function=db_title |usage=$smcFunc['db_title'] |description=Name of the database being used. Such as MySQL, PostgreSQL and SQlite. '''Shall not be called as a function,...")
 
No edit summary
Line 3: Line 3:
|usage=$smcFunc['db_title']
|usage=$smcFunc['db_title']
|description=Name of the database being used. Such as MySQL, PostgreSQL and SQlite. '''Shall not be called as a function, but used a string'''.
|description=Name of the database being used. Such as MySQL, PostgreSQL and SQlite. '''Shall not be called as a function, but used a string'''.
|parameters=None.
|return=A string with the name of the DBMS in use. It can return ''MySQL'', ''PostgreSQL'' or ''SQlite''.
|return=Nothing.
|example=<nowiki> $versions['db_server'] = array('title' => sprintf($txt['support_versions_db'], $smcFunc['db_title']), 'version' => '');</nowiki>
|example=<nowiki> $versions['db_server'] = array('title' => sprintf($txt['support_versions_db'], $smcFunc['db_title']), 'version' => '');</nowiki>
}}
}}

Revision as of 20:01, 26 July 2011

Usage:

$smcFunc['db_title']


Description: Name of the database being used. Such as MySQL, PostgreSQL and SQlite. Shall not be called as a function, but used a string.

Return: A string with the name of the DBMS in use. It can return MySQL, PostgreSQL or SQlite.

Example:

	$versions['db_server'] = array('title' => sprintf($txt['support_versions_db'], $smcFunc['db_title']), 'version' => '');



Advertisement: