Mercurial > epgrec.yaz
comparison deleteKeyword.php @ 1:f5a9f0eb4858
deleted: LICENSE.ja
author | Sushi-k <epgrec@park.mda.or.jp> |
---|---|
date | Wed, 08 Jul 2009 11:44:50 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:96312e6ab8d4 | 1:f5a9f0eb4858 |
---|---|
1 <?php | |
2 include_once('config.php'); | |
3 include_once( INSTALL_PATH . '/DBRecord.class.php' ); | |
4 include_once( INSTALL_PATH . '/Reservation.class.php' ); | |
5 include_once( INSTALL_PATH . '/reclib.php' ); | |
6 include_once( INSTALL_PATH . '/Keyword.class.php' ); | |
7 | |
8 if( isset($_GET['keyword_id'])) { | |
9 try { | |
10 $rec = new Keyword( "id", $_GET['keyword_id'] ); | |
11 $rec->delete(); | |
12 } | |
13 catch( Exception $e ) { | |
14 exit( "Error:" . $e->getMessage() ); | |
15 } | |
16 } | |
17 else exit( "Error:キーワードIDが指定されていません" ); | |
18 ?> |