diff recordedTable.php @ 61:87ded65fa485

add: keyword link
author yoneda <yoneda@recorder.localnet.mda.or.jp>
date Sun, 02 Aug 2009 12:23:37 +0900
parents 8965ef108821
children 4bd07b03c694
line wrap: on
line diff
--- a/recordedTable.php	Sat Aug 01 20:45:29 2009 +0900
+++ b/recordedTable.php	Sun Aug 02 12:23:37 2009 +0900
@@ -15,9 +15,13 @@
 // mysql_real_escape_stringより先に接続しておく必要がある
 $dbh = @mysql_connect( $settings->db_host, $settings->db_user, $settings->db_pass );
 
-#$options = "WHERE complete='1'";
+// $options = "WHERE complete='1'";
 $options = "WHERE starttime < '". date("Y-m-d H:i:s")."'";	// ながら再生は無理っぽい?
 
+if(isset( $_GET['key']) ) {
+	$options .= " AND autorec ='".mysql_real_escape_string(trim($_GET['key']))."'";
+}
+
 if(isset( $_POST['do_search'] )) {
 	if( isset($_POST['search'])){
 		if( $_POST['search'] != "" ) {