How to remove totalRows from the link Browser?

[code][php]<?php require_once('Connections/filmconnexion.php'); ??>
if (!function_exists(“GetSQLValueString”)) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = “”, $theNotDefinedValue = “”)
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

$currentPage = $_SERVER[“PHP_SELF”];

$maxRows_DataCategoria = 12;

$pagina = 0;
if (isset($_GET[‘pagina’])) {
$pagina = $_GET[‘pagina’];
}
$startRow_DataCategoria = $pagina * $maxRows_DataCategoria;

$varCategoria_DataCategoria = “0”;
if (isset($_GET[“cat”])) {
$varCategoria_DataCategoria = $_GET[“cat”];
}
mysql_select_db($database_filmconnexion, $filmconnexion);
$query_DataCategoria = sprintf(“SELECT * FROM tbl_film WHERE tbl_film.intCategoria = %s “, GetSQLValueString($varCategoria_DataCategoria, “int”));
$query_limit_DataCategoria = sprintf(”%s LIMIT %d, %d”, $query_DataCategoria, $startRow_DataCategoria, $maxRows_DataCategoria);
$DataCategoria = mysql_query($query_limit_DataCategoria, $filmconnexion) or die(mysql_error());
$row_DataCategoria = mysql_fetch_assoc($DataCategoria);

if (isset($_GET[‘totalRows_DataCategoria’])) {
$totalRows_DataCategoria = $_GET[‘totalRows_DataCategoria’];
} else {
$all_DataCategoria = mysql_query($query_DataCategoria);
$totalRows_DataCategoria = mysql_num_rows($all_DataCategoria);
}
$totalPages_DataCategoria = ceil($totalRows_DataCategoria/$maxRows_DataCategoria)-1;

$queryString_DataCategoria = “”;
if (!empty($_SERVER[‘QUERY_STRING’])) {
$params = explode("&", $_SERVER[‘QUERY_STRING’]);
$newParams = array();
foreach ($params as $param) {
if (stristr($param, “pagina”) == false &&
stristr($param, “totalRows_DataCategoria”) == false) {
array_push($newParams, $param);
}
}
if (count($newParams) != 0) {
$queryString_DataCategoria = “&” . htmlentities(implode("&", $newParams));
}
}
$queryString_DataCategoria = sprintf("&totalRows_DataCategoria=%d%s", $totalRows_DataCategoria, $queryString_DataCategoria);
?>

<?php if ($totalRows_DataCategoria ?> 0) { // Show if recordset not empty ?> <?php do { ??>
filminitaliano.com|Film gratis in italiano|Italia Streaming Online Gratis

<?php echo $row_DataCategoria['nome']; ??>

<?php } while ($row_DataCategoria = mysql_fetch_assoc($DataCategoria)); ??>
        <?php } // Show if recordset not empty ??>
        <?php if ($totalRows_DataCategoria == 0) { // Show if recordset empty ??>
          Per questo momento non essiste nessun film in questa categoria!
<?php } // Show if recordset empty ??>
....................................
<?php if ($pagina ?> 0) { // Show if not first page ?> ">Prima pagina <?php } // Show if not first page ??> <?php if ($pagina ?> 0) { // Show if not first page ?> ">Preccedente <?php } // Show if not first page ??> <?php if ($pagina < $totalPages_DataCategoria) { // Show if not last page ??> ">Prossima <?php } // Show if not last page ??> <?php if ($pagina < $totalPages_DataCategoria) { // Show if not last page ??> ">Ultima <?php } // Show if not last page ??>
<?php if ($totalRows_DataCategoria ?> 0) { // Show if recordset not empty ?> <?php do { ??>
filminitaliano.com|Film gratis in italiano|Italia Streaming Online Gratis

<?php echo $row_DataCategoria['nome']; ??>

<?php } while ($row_DataCategoria = mysql_fetch_assoc($DataCategoria)); ??>
        <?php } // Show if recordset not empty ??>
        <?php if ($totalRows_DataCategoria == 0) { // Show if recordset empty ??>
          Per questo momento non essiste nessun film in questa categoria!
<?php } // Show if recordset empty ??>
....................................
<?php if ($pagina ?> 0) { // Show if not first page ?> ">Prima pagina <?php } // Show if not first page ??> <?php if ($pagina ?> 0) { // Show if not first page ?> ">Preccedente <?php } // Show if not first page ??> <?php if ($pagina < $totalPages_DataCategoria) { // Show if not last page ??> ">Prossima <?php } // Show if not last page ??> <?php if ($pagina < $totalPages_DataCategoria) { // Show if not last page ??> ">Ultima <?php } // Show if not last page ??>

mysql_free_result($DataCategoria);
?>[/php][/code]

Sponsor our Newsletter | Privacy Policy | Terms of Service