Property:SMC description text From Online Manual

Jump to: navigation, search

string

description of $smcFunc functions

Showing 20 pages using this property.
D
Attempts to get database server information  +
Escapes strings for insertion into the database. The function does not require a database connection.<br>For MySQL [http://php.net/manual/en/function.addslashes.php addslashes] is used, while for PostgreSQL [http://php.net/manual/en/function.pg-escape-string.php pg_escape_string] and for SQLite [http://php.net/manual/en/function.sqlite-escape-string.php sqlite_escape_string] as used.  +
Executes a database query. Works similar to how db_query worked in SMF 1.x.  +
Formats the query as [[db_query]] does, but it does not execute the query. Used to prepare parts of query to be used later on.  +
Frees the memory in use by the result from a query. Works exactly as [http://php.net/mysql_free_result mysql_free_result]. This is usually called after the data has been fetched from the database.  +
In MySQL the function selects a database like the function [http://php.net/mysql_select_db mysql_select_db]. In PostgreSQL returns always true since the database is selected upon creating the connection. In SQlite will do nothing as there is only one database per file.  +
Insert data into the database.  +
Name of the database being used. Such as MySQL, PostgreSQL and SQlite. '''Shall not be called as a function, but used a string'''.  +
E
Only used by other string utility functions, such as [[htmlspecialchars]], [[htmltrim]], [[strpos]], [[substr]], and [[truncate]] to deal with numerical html entities found in the string. These functions are important to the way SMF deals with user-input characters that are outside the forum's declared character set.  +
D
Same as calling queries for "BEGIN", "ROLLBACK", and "COMMIT".  +
Tells SMF whether the database is case sensitive (PostgreSQL and SQlite) or not (MySQL). '''Shall not be called as a function, but used a boolean'''.  +
Tells SMF whether the database uses sybase (PostgreSQL and SQlite) or not (MySQL). '''Shall not be called as a function, but used a boolean'''.  +
This function allows for adding an index to a table.  +
This function allows for changing an existing column structure.  +
This function allows for creating a table. You can not create a SMF default table.  +
This function allows for removal a table. You can not delete a SMF default table.  +
H
This function is similar to PHP's [http://php.net/htmlspecialchars htmlspecialchars] function, however, it additionally checks the encoding argument and takes care of HTML entities using regex.  +
D
This function is used to add a new column to an existing table.  +
This function removes a column.  +
This function removes a index.  +


Advertisement: