> 백엔드 개발 > PHP 튜토리얼 > 如何让记录集“内容不重复出现”

如何让记录集“内容不重复出现”

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
풀어 주다: 2016-06-13 11:27:27
원래의
978명이 탐색했습니다.

怎么让记录集“内容不重复出现”

<?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     $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;<br>  }<br><br>  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);<br><br>  switch ($theType) {<br>    case "text":<br>      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";<br>      break;    <br>    case "long":<br>    case "int":<br>      $theValue = ($theValue != "") ? intval($theValue) : "NULL";<br>      break;<br>    case "double":<br>      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";<br>      break;<br>    case "date":<br>      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";<br>      break;<br>    case "defined":<br>      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;<br>      break;<br>  }<br>  return $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) or 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>
로그인 후 복사
관련 라벨:
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿