Dreamweaver 6为这样的数据库生成了搜索代码:
$maxRows_rs_movie_title_search = 10;
$pageNum_rs_movie_title_search = 0;
if (isset($_GET['pageNum_rs_movie_title_search'])) {
$pageNum_rs_movie_title_search = $_GET['pageNum_rs_movie_title_search'];
}
$startRow_rs_movie_title_search = $pageNum_rs_movie_title_search * $maxRows_rs_movie_title_search;
$colname_rs_movie_title_search = "-1";
if (isset($_GET['movie_title'])) {
$colname_rs_movie_title_search = $_GET['movie_title'];
}
mysql_select_db($database_classic_film_club, $classic_film_club);
$query_rs_movie_title_search = sprintf("SELECT movie_title, movie_alt_title, release_yr, genre, page_path, image_path FROM movies WHERE movie_title LIKE %s ORDER BY release_yr ASC", GetSQLValueString($colname_rs_movie_title_search, "text"));
$query_limit_rs_movie_title_search = sprintf("%s LIMIT %d, %d", $query_rs_movie_title_search, $startRow_rs_movie_title_search, $maxRows_rs_movie_title_search);
$rs_movie_title_search = mysql_query($query_limit_rs_movie_title_search, $classic_film_club) or die(mysql_error());
$row_rs_movie_title_search = mysql_fetch_assoc($rs_movie_title_search);
但这不会产生对movie_title的外卡搜索。我仍然需要输入确切的标题来拉取结果。我做错了什么?