//■edits_pc_data変数対応
`user_id` => 0
`pc_id` => 1
`pc_side` => 2
`pc_update` => 3
`pc_name` => 4
`pc_age` => 5
`pc_sex` => 6
`pc_tribe` => 7
`pc_job` => 8
`pc_st` => 9
`pc_dx` => 10
`pc_ag` => 11
`pc_iq` => 12
`pc_hp` => 13
`pc_mp` => 14
`pc_skill` => 15
`pc_week` => 16
`pc_item` => 17
`pc_other` => 18
`pc_memo` => 19
`pc_img` => 20
//■edits_pc_extra変数対応内容
edits_extra_nor[0] -> セッション履歴
edits_extra_nor[1] -> 遭遇メモ
edits_extra_eve[0] -> VR
edits_extra_eve[1] -> YAKF
edits_extra_eve[2] -> VDH
edits_extra_eve[3] -> VDD
//■ARRAY(title_extra_nor)対応内容
$title_nor_extra = ('セッション履歴','遭遇メモ');
$title_eve_extra = ('VILLAINS Return', 'Yie Ar Kang Fu!', 'VILLAINS Deadhand', 'VILLAINS DeadenD');//イベント名
$name_column_extra = ('vr2008', 'yakf2009', 'vdh2009', 'vdd2009');//カラム名
//■SQLから取り出した後に廻して、$title_extra_eveに入ったものを全部入れる←後々のメンテが楽~
//$rowの連想配列を取り出す。
for ( $i = 0 ; $i < count($title_eve_extra) ; $i++ ){
$result_eve_extra[] = $row[$name_column_extra[$i]];
}
//$title_eve_extra[x]に見出しのタイトルが入っている。
//$result_eve_extra[x]にoff/null/stringで入っている。
for ( $i = 0 ; $i < count($title_eve_extra) ; $i++ ){
if($result_eve_extra !== 'off') {
$hyouji .= '<h4>'.$title_eve_extra[$i].'</h4>
<p>'.$result_eve_extra[$i].'</p>';
}
}
最終更新:2010年05月25日 17:45