db_placeholders

Versions
6
db_placeholders($arguments, $type = 'int')

Generate placeholders for an array of query arguments of a single type.

Given a Schema API field type, return correct %-placeholders to embed in a query

Parameters

$arguments An array with at least one element.

$type The Schema API type of a field (e.g. 'int', 'text', or 'varchar').

Related topics

▾ 45 functions call db_placeholders()

aat_legacy_import_data in contrib-6/amazon/aat_legacy/aat_legacy.module
Create a CCK field for each node type that had Amazon link in D5. Then populate it.
apachesolr_get_parent_terms in contrib-6/apachesolr/apachesolr_search.module
apachesolr_nodeapi_mass_delete in contrib-6/apachesolr/apachesolr.index.inc
apachesolr_nodeapi_mass_update in contrib-6/apachesolr/apachesolr.index.inc
apachesolr_og_apachesolr_process_results in contrib-6/apachesolr/contrib/apachesolr_og/apachesolr_og.module
Implementation of hook_apachesolr_process_results().
apachesolr_search_taxonomy_facet_block in contrib-6/apachesolr/apachesolr_search.module
Generate the facet block for a taxonomy vid delta.
api_branch_delete_form_submit in contrib-6/api/api.admin.inc
Submit callback for api_branch_delete_form().
api_object_load in contrib-6/api/api.module
Menu object load callback for %api_object in menu paths.
api_shutdown in contrib-6/api/parser.inc
Cleans up at the end of the cron job.
block_list in drupal-6/modules/block/block.module
Return all blocks in the specified region for the current user.
block_user in drupal-6/modules/block/block.module
Implementation of hook_user().
blogapi_mt_validate_terms in drupal-6/modules/blogapi/blogapi.module
Blogging API helper - find allowed taxonomy terms for a node type.
ctools_context_terms_convert in contrib-6/ctools/plugins/contexts/terms.inc
Convert a context into a string.
ctools_export_load_object in contrib-6/ctools/includes/export.inc
Load some number of exportable objects.
ctools_object_cache_test_objects in contrib-6/ctools/includes/object-cache.inc
Get the cache status of a group of objects.
devel_generate_content_kill in contrib-6/devel/devel_generate.inc
Handle the devel_generate_content_form request to kill all of the content. This is used by both the batch and non-batch branches of the code.
devel_node_access_block in contrib-6/devel/devel_node_access.module
domain_content_list in contrib-6/domain/domain_content/domain_content.admin.inc
List the available domains for this user.
drush_theme_disable in contrib-6/drush/commands/core/drupal/environment_6.inc
Disable a list of themes.
drush_theme_enable in contrib-6/drush/commands/core/drupal/environment_6.inc
Enable a list of themes.
ec_subproducts_nodeapi in contrib-6/ec_subproducts/ec_subproducts.module
Implementation of _nodeapi hook.
ec_subproducts_select_bases_wizard2_submit in contrib-6/ec_subproducts/ec_subproducts.inc
The third stage of the base selection wizard.
glossary_search_results in contrib-6/glossary/glossary.module
locale_batch_by_language in drupal-6/includes/locale.inc
Prepare a batch to import translations for all enabled modules in a given language.
mollom_admin_form_options in contrib-6/mollom/mollom.admin.inc
Return registered forms as an array suitable for a 'checkboxes' form element #options property.
mollom_data_delete_multiple in contrib-6/mollom/mollom.module
Deletes multiple Mollom session data records from the database.
nodereference_field in contrib-6/cck/modules/nodereference/nodereference.module
Implementation of hook_field().
node_pathauto_bulkupdate in contrib-6/pathauto/pathauto_node.inc
Generate aliases for all nodes without aliases.
og_devel_generate in contrib-6/og/og.module
og_get_sql_args in contrib-6/og/og.module
og_node_groups_distinguish in contrib-6/og/og.module
Iterate over a set of groups and separate out those that are inaccessible to the current user.
og_user in contrib-6/og/og.module
panels_load_displays in contrib-6/panels/panels.module
Load and fill the requested $display object(s).
panels_save_display in contrib-6/panels/panels.module
Save a display object.
subscriptions_taxonomy_update_2 in contrib-6/subscriptions/subscriptions_taxonomy.install
Database update function 2 (replaces update function 1!).
taxonomy_select_nodes in drupal-6/modules/taxonomy/taxonomy.module
Finds all nodes that match selected taxonomy conditions.
taxonomy_term_page in drupal-6/modules/taxonomy/taxonomy.pages.inc
Menu callback; displays all nodes associated with a term.
user_access in drupal-6/modules/user/user.module
Determine whether the user has a given privilege.
_apachesolr_exclude_types in contrib-6/apachesolr/apachesolr.module
_asin_migrate_field_from_d5 in contrib-6/amazon/asin/asin.d5-migrate.inc
Batch Operation Callback
_asin_migrate_from_d5 in contrib-6/amazon/asin/asin.d5-migrate.inc
_menu_navigation_links_rebuild in drupal-6/includes/menu.inc
Helper function to build menu links for the items in the menu router.
_nodereference_potential_references_standard in contrib-6/cck/modules/nodereference/nodereference.module
Helper function for _nodereference_potential_references(): referenceable nodes defined by content types.
_subscriptions_content_load in contrib-6/subscriptions/subscriptions_content.module
Returns a node if published, including any comments that are still queued, but limited by the given subscriptions queue ID.
_userreference_potential_references_standard in contrib-6/cck/modules/userreference/userreference.module
Helper function for _userreference_potential_references(): referenceable users defined by user role and status

Code

drupal-6/includes/database.inc, line 250

<?php
function db_placeholders($arguments, $type = 'int') {
  $placeholder = db_type_placeholder($type);
  return implode(',', array_fill(0, count($arguments), $placeholder));
}
?>

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options