3
$member_id = 12;
$results = db_query("select * from {customorders} where id = :fid", array(':fid' => $member_id));
foreach($results as $result) {
$name = $result['name'];
}
,但我得到了選擇
錯誤Fatal error: Cannot use object of type stdClass as array
所以這可能是解決方案,並請糾正我,如果我寫了錯誤的查詢,我想「SELECT * FROM customorders其中id = 12「 和customorders是我在Drupal數據庫中創建的自定義表格
請幫我..
謝謝