Mercurial > epgrec.yaz
comparison recordedTable.php @ 10:152b146bd276
fixed: mysql_connect before mysql_real_escape_string
author | Sushi-k <epgrec@park.mda.or.jp> |
---|---|
date | Mon, 13 Jul 2009 17:12:07 +0900 |
parents | f5a9f0eb4858 |
children | bbbc4f1ecf1d |
comparison
equal
deleted
inserted
replaced
9:500c7fbb46aa | 10:152b146bd276 |
---|---|
5 | 5 |
6 $order = ""; | 6 $order = ""; |
7 $search = ""; | 7 $search = ""; |
8 $category_id = 0; | 8 $category_id = 0; |
9 $station = 0; | 9 $station = 0; |
10 | |
11 // mysql_real_escape_stringより先に接続しておく必要がある | |
12 $dbh = @mysql_connect( DB_HOST, DB_USER, DB_PASS ); | |
10 | 13 |
11 #$options = "WHERE complete='1'"; | 14 #$options = "WHERE complete='1'"; |
12 $options = "WHERE starttime < '". date("Y-m-d H:i:s")."'"; // ながら再生は無理っぽい? | 15 $options = "WHERE starttime < '". date("Y-m-d H:i:s")."'"; // ながら再生は無理っぽい? |
13 | 16 |
14 if(isset( $_POST['do_search'] )) { | 17 if(isset( $_POST['do_search'] )) { |