Example #1
0
            //
            $camera_syurui_suryo = $row['camera_syurui_suryo'];
            $lens_syurui = $row['lens_syurui'];
            $mt_user_name = $row['user_name'];
            $age = $row['age'];
        }
    } catch (Exception $e) {
        print "エラー!: " . $e->getMessage() . "<br/>";
        die;
    }
} else {
    // モデルクラスのインスタンスを生成する
    $user_syubetu = new Model();
    try {
        // 画面に表示するモデルのプロフィール情報を設定
        $result = $user_syubetu->show_profile($mt_user_id, $mt_user_kbn);
        // 画面に表示するカメラマンのプロフィール情報(プロフィール、カメラ)を設定
        foreach ($result as $row) {
            //カメラマンのプロフィール情報
            $mt_user_name = $row['user_name'];
            //$mt_user_kbn = $row['mt_user_kbn'];
        }
    } catch (Exception $e) {
        print "エラー!: " . $e->getMessage() . "<br/>";
        die;
    }
}
/*
try{

    // 表示対象ユーザーの情報を取得する。