You are here

Functions in Drupal 5

Primary tabs

Namesort descending Location Description Direct uses Strings
db_encode_blob includes/database.pgsql.inc Returns a properly formatted Binary Large OBject value. In case of PostgreSQL encodes data for insert into bytea field. 1
db_encode_blob includes/database.mysqli.inc Returns a properly formatted Binary Large Object value. 1
db_error includes/database.mysql.inc Determine whether the previous query caused an error.
db_error includes/database.pgsql.inc Determine whether the previous query caused an error.
db_error includes/database.mysqli.inc Determine whether the previous query caused an error.
db_escape_string includes/database.mysql.inc Prepare user input for use in a database query, preventing SQL injection attacks. 4
db_escape_string includes/database.pgsql.inc Prepare user input for use in a database query, preventing SQL injection attacks. Note: This function requires PostgreSQL 7.2 or later. 4
db_escape_string includes/database.mysqli.inc Prepare user input for use in a database query, preventing SQL injection attacks. 4
db_escape_table includes/database.inc Restrict a dynamic tablename to safe characters. 7
db_fetch_array includes/database.mysql.inc Fetch one result row from the previous query as an array. 26
db_fetch_array includes/database.pgsql.inc Fetch one result row from the previous query as an array. 26
db_fetch_array includes/database.mysqli.inc Fetch one result row from the previous query as an array. 26
db_fetch_object includes/database.mysql.inc Fetch one result row from the previous query as an object. 192
db_fetch_object includes/database.pgsql.inc Fetch one result row from the previous query as an object. 192
db_fetch_object includes/database.mysqli.inc Fetch one result row from the previous query as an object. 192
db_lock_table includes/database.mysql.inc Lock a table. 3
db_lock_table includes/database.pgsql.inc Lock a table. This function automatically starts a transaction. 3
db_lock_table includes/database.mysqli.inc Lock a table. 3
db_next_id includes/database.mysql.inc Return a new unique ID in the given sequence. 14
db_next_id includes/database.pgsql.inc Return a new unique ID in the given sequence. 14
db_next_id includes/database.mysqli.inc Return a new unique ID in the given sequence. 14
db_num_rows includes/database.mysql.inc Determine how many result rows were found by the preceding query. 32
db_num_rows includes/database.pgsql.inc Determine how many result rows were found by the preceding query. 32
db_num_rows includes/database.mysqli.inc Determine how many result rows were found by the preceding query. 32
db_prefix_tables includes/database.inc Append a database prefix to all tables in a query. 10
db_query includes/database.inc Runs a basic query in the active database. 371
db_query_range includes/database.mysql.inc Runs a limited-range query in the active database. 30
db_query_range includes/database.pgsql.inc Runs a limited-range query in the active database. 30
db_query_range includes/database.mysqli.inc Runs a limited-range query in the active database. 30
db_query_temporary includes/database.mysql.inc Runs a SELECT query and stores its results in a temporary table. 2
db_query_temporary includes/database.pgsql.inc Runs a SELECT query and stores its results in a temporary table. 2
db_query_temporary includes/database.mysqli.inc Runs a SELECT query and stores its results in a temporary table. 2
db_result includes/database.mysql.inc Return an individual result field from the previous query. 66
db_result includes/database.pgsql.inc Return an individual result field from the previous query. 66
db_result includes/database.mysqli.inc Return an individual result field from the previous query. 66
db_rewrite_sql includes/database.inc Rewrites node, taxonomy and comment queries. Use it for listing queries. Do not use FROM table1, table2 syntax, use JOIN instead. 48
db_set_active includes/database.inc Activate a database for future queries. 3
db_status_report includes/database.mysql.inc Report database status. 1 1
db_status_report includes/database.pgsql.inc Report database status. 1 1
db_status_report includes/database.mysqli.inc Report database status. 1 1
db_table_exists includes/database.mysql.inc Check if a table exists. 2
db_table_exists includes/database.pgsql.inc Check if a table exists. 2
db_table_exists includes/database.mysqli.inc Check if a table exists. 2
db_unlock_tables includes/database.mysql.inc Unlock all locked tables. 3
db_unlock_tables includes/database.pgsql.inc Unlock all locked tables. This function automatically commits a transaction. 3
db_unlock_tables includes/database.mysqli.inc Unlock all locked tables. 3
db_version includes/database.mysql.inc Returns the version of the database server currently in use. 3
db_version includes/database.pgsql.inc Returns the version of the database server currently in use. 3
db_version includes/database.mysqli.inc Returns the version of the database server currently in use. 3
decode_entities includes/unicode.inc Decode all HTML entities (including numerical ones) to regular UTF-8 bytes. Double-escaped entities will only be decoded once ("&amp;lt;" becomes "&lt;", not "<"). 7

Pages

Other projects