changeset 113:9b9e22be8407

added zenkaku query hack
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 13 Mar 2010 18:53:41 +0900
parents b3ba2658a228
children f5d58cf2842f
files programTable.php
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/programTable.php	Sat Mar 13 18:27:33 2010 +0900
+++ b/programTable.php	Sat Mar 13 18:53:41 2010 +0900
@@ -46,6 +46,7 @@
 				$options .= " AND CONCAT(title,description) REGEXP '".mysql_real_escape_string($search)."'";
 			}
 			else {
+				$search = mb_convert_kana($search, "A", "UTF-8");
 				$options .= " AND CONCAT(title,description) like '%".mysql_real_escape_string($search)."%'";
 			}
 		}