conn = DatabaseConnectionFactory::getConnection(); $this->conn->SetFetchMode(ADODB_FETCH_ASSOC); //$this->conn->debug = true; } function getList() { $sql = 'SELECT artistId,name FROM m_artist WHERE isValid = 1'; $pstmt = $this->conn->prepare($sql); $rs = $this->conn->Execute($pstmt); if ($rs->EOF) { return null; } return $rs->getArray(); } function findByActive ($limit, $page = 1) { $offset = $limit * ($page - 1); $sql = 'SELECT artistId,name,profile,djMix ' . 'FROM m_artist ' . 'WHERE isValid = 1 ' . 'ORDER BY updated DESC ' . 'LIMIT ? OFFSET ?'; $pstmt = $this->conn->prepare($sql); $rs = $this->conn->Execute($pstmt, array($limit, $offset)); if ($rs->EOF) { return null; } return $rs->getArray(); } function isExsist ($name) { $sql = <<conn->prepare($sql); $rs = $this->conn->Execute($pstmt, array($name)); $row = $rs->FetchRow(); return $row['count'] ? true : false; } function findByArtistId (&$dto) { $sql = <<conn->prepare($sql); $rs = $this->conn->Execute($pstmt, array($dto->artistId)); $row = $rs->FetchRow(); $dto->name = $row['name']; $dto->profile = $row['profile']; $dto->djMix = $row['djMix']; $dto->memberId = $row['memberId']; $dto->isValid = $row['isValid']; } function findByMemberId (&$dto) { $sql = <<conn->prepare($sql); $rs = $this->conn->Execute($pstmt, array($dto->memberId)); $row = $rs->FetchRow(); $dto->artistId = $row['artistId']; $dto->name = $row['name']; $dto->profile = $row['profile']; $dto->memberId = $row['memberId']; $dto->isValid = $row['isValid']; } function insert(&$dto) { $sql = <<name, $dto->profile, $dto->djMix, $dto->memberId, $dto->isValid, $dto->creator, $dto->updater ); $pstmt = $this->conn->prepare($sql); if ($this->conn->Execute($pstmt, array($data))) { $sql2 = 'select LAST_INSERT_ID() AS artistId'; $rs2 = $this->conn->Execute($sql2); $row = $rs2->FetchRow(); return $row['artistId']; } return; } function update(&$dto) { $sql = <<artistId, $dto->name, $dto->profile, $dto->djMix, $dto->memberId, $dto->isValid, $dto->updater, $dto->artistId, ); $pstmt = $this->conn->prepare($sql); $this->conn->Execute($pstmt, $data); } function delete($artistId, $updater) { $sql = <<conn->prepare($sql); $this->conn->Execute($pstmt, $data); } } ?> conn = DatabaseConnectionFactory::getConnection(); $this->conn->SetFetchMode(ADODB_FETCH_ASSOC); //$this->conn->debug = true; } function getList($memberId = null) { $sql = 'SELECT * FROM m_event WHERE isValid = 1 '; if ($memberId) { $sql .= 'AND memberId = ' . $memberId; } $sql .= ' ORDER BY date DESC'; $pstmt = $this->conn->prepare($sql); $rs = $this->conn->Execute($pstmt); if ($rs->EOF) { return null; } return $rs->getArray(); } function findByClubId ($clubId) { $sql1 = <<= now() ORDER BY m_event.date EOF; $pstmt1 = $this->conn->prepare($sql1); $rs1 = $this->conn->Execute($pstmt1, array($clubId)); if (!$rs1->EOF) { $list1 = $rs1->getArray(); } $sql2 = <<conn->prepare($sql2); $rs2 = $this->conn->Execute($pstmt2, array($clubId)); if (!$rs2->EOF) { $list2 = $rs2->getArray(); } $list = array_merge($list1, $list2); return $list; } function findByActive ($limit, $page = 1) { $offset = $limit * ($page - 1); $sql = <<= now() ORDER BY m_event.date LIMIT ? OFFSET ? EOF; $pstmt = $this->conn->prepare($sql); $rs = $this->conn->Execute($pstmt, array($limit,$offset)); if ($rs->EOF) { return null; } return $rs->getArray(); } function findNewEventList ($limit, $page = 1) { $offset = $limit * ($page - 1); $sql = <<= now() ORDER BY m_event.date LIMIT ? OFFSET ? EOF; $pstmt = $this->conn->prepare($sql); $rs = $this->conn->Execute($pstmt, array($limit,$offset)); if ($rs->EOF) { return null; } return $rs->getArray(); } function isExsist ($name) { $sql = <<conn->prepare($sql); $rs = $this->conn->Execute($pstmt, array($name)); $row = $rs->FetchRow(); return $row['count'] ? true : false; } function findByEventId (&$dto) { $sql = <<conn->prepare($sql); $rs = $this->conn->Execute($pstmt, array($dto->eventId)); $row = $rs->FetchRow(); $dto->name = $row['name']; $dto->clubId = $row['clubId']; $dto->date = $row['date']; $dto->information = $row['information']; $dto->nonMemberArtist = $row['nonMemberArtist']; $dto->report = $row['report']; $dto->isValid = $row['isValid']; $list = split('-', $row['date']); $dto->year = $list[0]; $dto->month = $list[1]; $dto->day = $list[2]; } function insert(&$dto) { $sql = <<name, $dto->clubId, $dto->date, $dto->information, $dto->nonMemberArtist, $dto->report, $dto->memberId, $dto->isValid, $dto->creator, $dto->updater ); //$this->conn->debug = true; $pstmt = $this->conn->prepare($sql); if ($this->conn->Execute($pstmt, array($data))) { $sql2 = 'select LAST_INSERT_ID() AS id'; $rs2 = $this->conn->Execute($sql2); $row = $rs2->FetchRow(); return $row['id']; } return; } function update(&$dto) { $sql = <<eventId, $dto->name, $dto->clubId, $dto->date, $dto->information, $dto->nonMemberArtist, $dto->report, $dto->memberId, $dto->isValid, $dto->updater, $dto->eventId ); $pstmt = $this->conn->prepare($sql); $this->conn->Execute($pstmt, $data); } function delete($eventId, $updater) { $sql = <<conn->prepare($sql); $this->conn->Execute($pstmt, $data); } } ?> conn = DatabaseConnectionFactory::getConnection(); $this->conn->SetFetchMode(ADODB_FETCH_ASSOC); //$this->conn->debug = true; } function findByArtistId($artistId) { // TODO LEFT JOINに変更 // new $sql1 = <<= now() AND B.eventId = C.eventId AND B.artistId = ? AND B.isValid = 1 ORDER BY C.date EOF; print "
";
			$pstmt1 = $this->conn->prepare($sql1);
			$rs1 = $this->conn->Execute($pstmt1, array($artistId));
			if ($rs1->EOF) {
				return null;
			}
			$list1 = $rs1->getArray();

			// new
			$sql2 = <<conn->prepare($sql2);
			$rs2 = $this->conn->Execute($pstmt2, array($artistId));
			if ($rs2->EOF) {
				return null;
			}
			$list2 = $rs2->getArray();
			$result = array_merge($list1, $list2);

			return $result;
		}		
		
		function findByEventId($eventId) {
			$sql = <<conn->prepare($sql);
			$rs = $this->conn->Execute($pstmt, array($eventId));
			if ($rs->EOF) {
				return null;
			}
			return $rs->getArray();
		}

		function isExsist ($eventId, $artistId)
		{
			$sql = <<conn->prepare($sql);
			$rs = $this->conn->Execute($pstmt, array($eventId, $artistId));
			$row = $rs->FetchRow();
			return $row['count'] ? true : false;
		}

		function insert($eventId, $artistId, $displayOrder = null,
										$isValid, $creator, $updater) {
			$sql = <<conn->prepare($sql);
			if ($this->conn->Execute($pstmt, array($data))) {
				return true;
			}
			return;
		}

		function update($eventId, $artistId, $displayOrder = null,
							$isValid, $updater) {
			$sql = <<conn->debug = true;
			$pstmt = $this->conn->prepare($sql);
			$this->conn->Execute($pstmt, $data);
		}
		
		function delete ($eventId, $artistId, $isValid) {
			$sql = <<conn->debug = true;
			$pstmt = $this->conn->prepare($sql);
			$this->conn->Execute($pstmt, array($eventId, $artistId, $isValid));
        }
	}
?>
conn = DatabaseConnectionFactory::getConnection();
			$this->conn->SetFetchMode(ADODB_FETCH_ASSOC);
			//$this->conn->debug = true;
		}

		function getList() {
			$sql = 'SELECT clubId,name FROM m_club WHERE isValid = 1';
			$pstmt = $this->conn->prepare($sql);
			$rs = $this->conn->Execute($pstmt);
			if ($rs->EOF) {
				return null;
			}
			return $rs->getArray();
		}

		function findByActive ($limit, $page = 1) {
			$offset = $limit * ($page - 1);
			$sql = 'SELECT clubId,name,address,information,accessInformation ' .
					'FROM m_club ' .
					'WHERE isValid = 1 ' .
					'ORDER BY updated DESC ' .
					'LIMIT ? OFFSET ?';
			//$this->conn->debug = true;
			$pstmt = $this->conn->prepare($sql);
			$rs = $this->conn->Execute($pstmt, array($limit, $offset));
			if ($rs->EOF) {
				return null;
			}
			return $rs->getArray();			
        }		

		function findByClubId (&$dto) {
			$sql = <<conn->prepare($sql);
			$rs = $this->conn->Execute($pstmt, array($dto->clubId));
			$row = $rs->FetchRow();
			$dto->clubId = $row['clubId'];
			$dto->name = $row['name'];
			$dto->information = $row['information'];
			$dto->address = $row['address'];
			$dto->accessInformation = $row['accessInformation'];
			$dto->memberId = $row['memberId'];
			$dto->isValid = $row['isValid'];
		}

		function findByMemberId (&$dto) {
			$sql = <<conn->prepare($sql);
			$rs = $this->conn->Execute($pstmt, array($dto->memberId));
			$row = $rs->FetchRow();
			$dto->clubId = $row['clubId'];
			$dto->name = $row['name'];
			$dto->information = $row['information'];
			$dto->address = $row['address'];
			$dto->accessInformation = $row['accessInformation'];
			$dto->memberId = $row['memberId'];
			$dto->isValid = $row['isValid'];
		}		

		function isExsist ($name)
		{
			$sql = <<conn->prepare($sql);
			$rs = $this->conn->Execute($pstmt, array($name));
			$row = $rs->FetchRow();
			return $row['count'] ? true : false;
		} 			
		
		function insert(&$dto) {
			$sql = <<name,
							$dto->information,
							$dto->address,
							$dto->accessInformation,
							$dto->memberId,
							$dto->isValid,
							$dto->creator,
							$dto->updater
			);
			//$this->conn->debug = true;
			$pstmt = $this->conn->prepare($sql);
			if ($this->conn->Execute($pstmt, array($data))) {
				$sql2 = 'select LAST_INSERT_ID() AS clubId';
				$rs2 = $this->conn->Execute($sql2);
				$row = $rs2->FetchRow();
				return $row['clubId']; 
			}
			return;
		}

		function update(&$dto) {
			$sql = <<clubId,
							$dto->name,
							$dto->information,
							$dto->address,
							$dto->accessInformation,
							$dto->memberId,
							$dto->isValid,
							$dto->creator,
							$dto->updater,
							$dto->clubId
			);
			$pstmt = $this->conn->prepare($sql);
			$this->conn->Execute($pstmt, $data);
		}

		function delete($clubId, $updater) {
			$sql = <<conn->prepare($sql);
			$this->conn->Execute($pstmt, $data);
		}		
	}
?>


  
  
  メンタルテクノファージ DJ・イベント・クラブ情報サイト



banner

news

2008年カウントダウンパーティーに向けた特集映像配信中!

TERANOID ライブ映像配信中!

メンタルテクノファージでは去年のカウントダウンと、今年の年末のパーティーを取材した映像をクリップにまとめて 配信しています。上記のバナーから特集ページをご覧下さい!。


配信は終了しました。たくさんのご視聴、どうもありがとうございました!

TERANOID、クラブチッタでのRush Hour VS Upsurgeのライブ映像を配信開始!

TERANOID ライブ映像配信中!

今年の5月13日、クラブチッタで行われたRush Hour VS Upsurgeでの、TERANOIDのライブを取材してきました!スペーシーなイントロから徐々にエモーショナルにフロアを盛り上げていった彼らのライブアクト、上のバナーからとくとご覧アレ!

LEOPALDON(レオパルドン)、川崎クラブチッタでのライブ映像を配信中!

LEOPALDON(レオパルドン)ライブ映像配信中!

極太エレクト(ロ)ファンクを提唱するLEOPALDON(レオパルドン)。10年のキャリアを持つ彼らがついに川崎クラブチッタに登場!2007年5月13日に行われたUpsurgeに取材に行ってきました!多数のアーティスト、ミュージシャンが参加する中、ひときわキレのあるライブを見せてくれた彼ら。そんなライブをばっちり配信中!上のバナーをクリックして特集ページへGO!

4/19 DE DE MOUSE 最新ライブ映像をアップ!!

dedemouse@高円寺Roots

2006年12月28日に高円寺のRootsで行われたイベント、ERECTRO DYNAMICでのライブ模様をアップ。短めのダイジェスト版と、たっぷりDE DE MOUSEを堪能できるロング版、2バージョンをご用意。 どっぷり彼の魅力にはまっちゃってください!!

DJ SODEYAMA ライブ映像配信中!!


2006年10月7日に行われたPLUS TOKYOの野外イベント、PLUSOUTでのライブ映像を配信中!!

mhonoralライブ映像配信中


2006年9月15日に行われた、本人らの主催するイベント、continueより VOLIとDJ SATOSHIによるユニット、mhonoralのライブ映像を配信中!!

--- 特集 PLUS OUT !!! ---


第一弾の特集として、Shin Nishimura率いるPLUS TOKYOの野外イベント、PLUS OUTを取材してきました!! ロゴをクリックして特集ページへGO!!

artist