📜  drupal 7 db_query 示例 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:25.435000             🧑  作者: Mango

代码示例1
$zip_codes=db_query("SELECT a.zip_code FROM {cart_scheduler_cities} AS a");
    $zip_array = db_fetch_object($zip_codes );

if (! in_array($form_state['values']['delivery_postal_code'],$zip_array)) {