摘要:Drupal使用称之为“placeholder”的方式处理SQL查询参数: 'page',));// CORRECT:$result = db_query("SELECT nid, title FROM {node} WHERE type = :type", array( ':type' => 'page',));?>数组参数主要是应用于IN查询的环境: array(13, 42, 144));// Will get turned into this prepared statement equivalent au
阅读全文
posted @ 2013-09-26 16:28