flagflag  If you want to see English page, please click "English" Button at Left.
9: 2013-04-19 (金) 23:35:31 iseki ソース 10: 2013-04-22 (月) 15:24:46 iseki ソース
Line 64: Line 64:
- array(object) get_records_select($table, $select, array $params=null, $sort='', $fields='*', $limitfrom=0, $limitnum=0) - array(object) get_records_select($table, $select, array $params=null, $sort='', $fields='*', $limitfrom=0, $limitnum=0)
- $select の ''?'' に 配列 $params の要素が対応(並び順) - $select の ''?'' に 配列 $params の要素が対応(並び順)
 +- $select 中の '':変数名'' に $params の各要素が対応
- name が結果の配列のキーになる(重複があるとワーニング) - name が結果の配列のキーになる(重複があるとワーニング)
 $templates = $DB->get_records_select('apply_template'​, 'course=? OR ispublic=1', array($course->id), 'name');  $templates = $DB->get_records_select('apply_template'​, 'course=? OR ispublic=1', array($course->id), 'name');
Line 69: Line 70:
**** $DB->get_records_sql [#kb220662] **** $DB->get_records_sql [#kb220662]
- array(object) get_records_sql($sql, array $params=null, $limitfrom=0, $limitnum=0) - array(object) get_records_sql($sql, array $params=null, $limitfrom=0, $limitnum=0)
 +- $sql の ''?'' に 配列 $params の要素が対応(並び順)
- $sql 中の '':変数名'' に $params の各要素が対応 - $sql 中の '':変数名'' に $params の各要素が対応
 $where = 'WHERE as.id=av.submit_id AND av.version=0 AND as.apply_id=:apply_id AND ai.id=av.item_id ';  $where = 'WHERE as.id=av.submit_id AND av.version=0 AND as.apply_id=:apply_id AND ai.id=av.item_id ';


トップ   新規 ページ一覧 単語検索 最終更新   ヘルプ   最終更新のRSS 1.0 最終更新のRSS 2.0 最終更新のRSS Atom

サイト内 検索

ログイン

ユーザー名:

パスワード:


パスワード紛失
新規登録

サブ メニュー

ミニカレンダー

前月2024年 5月翌月
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
<今日>

オンライン状況

110 人のユーザが現在オンラインです。 (11 人のユーザが xpwiki を参照しています。)

登録ユーザ: 0
ゲスト: 110

もっと...

アクセスカウンタ

今日 : 8595859585958595
昨日 : 1223912239122391223912239
総計 : 2354626523546265235462652354626523546265235462652354626523546265
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com