怎么让记录集“内容不重复出现”
<?php require_once('Conn/hx98.php'); ?><br> <?php<br> if (!function_exists("GetSQLValueString")) {<br> function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") <br> {<br> if (PHP_VERSION < 6) {<br> $theValue = get_magic_quotes_gpc() ? ストリップスラッシュ($theValue) : $theValue;<br> }<br> <br> $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);<br> <br> スイッチ ($theType) {<br> case "テキスト":<br> $theValue = ($theValue != "") ? 「」」 。 $theValue 。 "'" : "NULL";<br> 壊す; <br> ケース「長い」:<br> case "int":<br> $theValue = ($theValue != "") ? intval($theValue) : "NULL";<br> 休憩;<br> case "double":<br> $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";<br> 休憩;<br> ケース「日付」:<br> $theValue = ($theValue != "") ? 「」」 。 $theValue 。 "'" : "NULL";<br> 休憩;<br> ケース「定義済み」:<br> $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;<br> 休憩;<br> }<br> $theValue を返す;<br> }<br> }<br> <br> $maxRows_hx = 10;<br> $pageNum_hx = 0;<br> if (isset($_GET['pageNum_hx'])) {<br> $pageNum_hx = $_GET['pageNum_hx'];<br> }<br> $startRow_hx = $pageNum_hx * $maxRows_hx;<br> mysql_query("set names utf8");<br> mysql_select_db($database_hx98, $hx98);<br> $query_hx = "SELECT * FROM content_publish ORDER BY content_id DESC";<br> $query_limit_hx = sprintf("%s LIMIT %d, %d", $query_hx, $startRow_hx, $maxRows_hx);<br> $hx = mysql_query($query_limit_hx, $hx98) または die(mysql_error());<br> $row_hx = mysql_fetch_assoc($hx);<br> <br> <br> <br> if (isset($_GET['totalRows_hx'])) {<br> $totalRows_hx = $_GET['totalRows_hx']; <div class="clear"></div>