Zorg更新一覧

しかし、フォトコンテストを新規作成しようとするとエラー907が発生します。 この原因がzorgst.donotfree.comのst_uppict_photocon.phpにあり、

94         $result_pgrp_cnt = Func_mysql_exec($con, $query);
95         $rec = mysql_fetch_array($result_pgrp_cnt);
96         mysql_free_result($result_pgrp_cnt);
97         if ($rec['cnt'] <= 0) {
98                         $dispmess       = "不正アクセス? CODE907";
99                         include("./inc_mess_error.php");

100 Func_mysql_exit($con); 101 }

から、$rec['cnt']が0である事を途中にechoを挟む事で確認しました。 このcntを送っているのはどこだろうと考えた所、 zorg.donotfree.com/manage/testGroup/edit_photocon.php であると考え検索を掛けた結果、以下が見つかりました。

137                 //----------------------------------------------------------------
138                 //      フォトコン受賞作品数
139                 //----------------------------------------------------------------
140 
141                 $isAward = false;
142 
143                 $query = "
144                         SELECT count(*) cnt
145                         FROM grpphotocon_award_photo
146                         WHERE gid = " . $DC['gid'] . "
147                         AND pcid = " . $DC['pcid'] . "
148                 ";
149                 $rec = Func_mysql_exec($con, $query);
150                 if ($rec) {
151                         $result = mysql_fetch_array($rec);
152                         if ($result && 0 < $result['cnt']) {
153                                 $isAward = true;
154                         }
155                 }

試しにDBから検索をかけると mysql> SELECT * FROM grpphotocon_award_photo;で、54行のラインがえられます。

mysql> SELECT count(*) cnt FROM grpphotocon_award_photo;

  1. -----+
    cnt
  2. -----+
    54
  3. -----+ 1 row in set (0.00 sec)

なので、ここから関連するものを検索します。 新しく作成したプレミアムグループの「TEST」はgid=1970 「SIGMA」はgid=1543です。

そこで、下記を試した。 mysql> SELECT count(*) cnt FROM grpphotocon_award_photo where gid=1543;

  1. -----+
    cnt
  2. -----+
    12
  3. -----+ 1 row in set (0.00 sec)

mysql> SELECT count(*) cnt FROM grpphotocon_award_photo where gid=1970;

  1. -----+
    cnt
  2. -----+
    0
  3. -----+ 1 row in set (0.00 sec)

ここまで03/13の段階でしぼる事ができた。 参考になった資料をまた貼付けておきます。


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS