magic framework の開発
| Revision | a14a9acc56dc14d2e83d256b6157ec7689215473 (tree) |
|---|---|
| Time | 2011-12-16 12:09:22 |
| Author | taka451213 <taka451213@hotm...> |
| Commiter | taka451213 |
Merge branch 'master' of
taka451213@git.pf.sourceforge.jp:/gitroot/t/ta/taka451213/magic.git
Signed-off-by: taka451213 <taka451213@hotmail.com>
| @@ -14,32 +14,32 @@ final class IndexDao extends Dao { | ||
| 14 | 14 | $res->execute(); |
| 15 | 15 | return $res->fetchAll(PDO::FETCH_ASSOC); |
| 16 | 16 | } |
| 17 | - public function deleteTournament($userNo, $tournamentNo) { | |
| 18 | - $stmt = " delete from ms_tournament"; | |
| 19 | - $stmt .= " where user_no = ?"; | |
| 20 | - $stmt .= " and tournament_no = ?"; | |
| 21 | - $res = $this->pdo->prepare($stmt); | |
| 22 | - $res->execute(array($userNo, $tournamentNo)); | |
| 23 | - return $res->rowCount(); | |
| 24 | - } | |
| 25 | - public function updateTournament($userNo, $tournamentNo) { | |
| 26 | - $stmt = " update ms_tournament"; | |
| 27 | - $stmt .= " set status = 1"; | |
| 28 | - $stmt .= " where user_no = ?"; | |
| 29 | - $stmt .= " and tournament_no = ?"; | |
| 30 | - $stmt .= " and status = 0"; | |
| 31 | - $res = $this->pdo->prepare($stmt); | |
| 32 | - $res->execute(array($userNo, $tournamentNo)); | |
| 33 | - return $res->rowCount(); | |
| 34 | - } | |
| 35 | - public function selectImage($userNo, $tournamentNo) { | |
| 36 | - $stmt = " select main_image"; | |
| 37 | - $stmt .= " from ms_tournament"; | |
| 38 | - $stmt .= " where user_no = ?"; | |
| 39 | - $stmt .= " and tournament_no = ?"; | |
| 40 | - $res = $this->pdo->prepare($stmt); | |
| 41 | - $res->execute(array($userNo, $tournamentNo)); | |
| 42 | - return $res->fetchColumn(); | |
| 43 | - } | |
| 17 | +// public function deleteTournament($userNo, $tournamentNo) { | |
| 18 | +// $stmt = " delete from ms_tournament"; | |
| 19 | +// $stmt .= " where user_no = ?"; | |
| 20 | +// $stmt .= " and tournament_no = ?"; | |
| 21 | +// $res = $this->pdo->prepare($stmt); | |
| 22 | +// $res->execute(array($userNo, $tournamentNo)); | |
| 23 | +// return $res->rowCount(); | |
| 24 | +// } | |
| 25 | +// public function updateTournament($userNo, $tournamentNo) { | |
| 26 | +// $stmt = " update ms_tournament"; | |
| 27 | +// $stmt .= " set status = 1"; | |
| 28 | +// $stmt .= " where user_no = ?"; | |
| 29 | +// $stmt .= " and tournament_no = ?"; | |
| 30 | +// $stmt .= " and status = 0"; | |
| 31 | +// $res = $this->pdo->prepare($stmt); | |
| 32 | +// $res->execute(array($userNo, $tournamentNo)); | |
| 33 | +// return $res->rowCount(); | |
| 34 | +// } | |
| 35 | +// public function selectImage($userNo, $tournamentNo) { | |
| 36 | +// $stmt = " select main_image"; | |
| 37 | +// $stmt .= " from ms_tournament"; | |
| 38 | +// $stmt .= " where user_no = ?"; | |
| 39 | +// $stmt .= " and tournament_no = ?"; | |
| 40 | +// $res = $this->pdo->prepare($stmt); | |
| 41 | +// $res->execute(array($userNo, $tournamentNo)); | |
| 42 | +// return $res->fetchColumn(); | |
| 43 | +// } | |
| 44 | 44 | } |
| 45 | 45 | // EOF. |
| \ No newline at end of file |