From 49d504fe82a35c752801f7f3910331ed89db0986 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Fri, 18 May 2001 21:34:58 +0000 Subject: [PATCH] Fixed the bug #424278: Display xx records on the select page --- tbl_select.php3 | 151 ++++++++++++++++++++++++------------------------ 1 file changed, 75 insertions(+), 76 deletions(-) diff --git a/tbl_select.php3 b/tbl_select.php3 index 40dffbabc..53f8b57c4 100755 --- a/tbl_select.php3 +++ b/tbl_select.php3 @@ -5,17 +5,14 @@ require("grab_globals.inc.php3"); -if(!isset($param) || $param[0] == "") - { - require("header.inc.php3"); - $result = mysql_list_fields($db, $table); - if (!$result) - { - mysql_die(); - } - else - { - ?> +if(!isset($param) || $param[0] == "") { + include("header.inc.php3"); + $result = mysql_list_fields($db, $table); + if (!$result) { + mysql_die(); + } + else { + ?>
@@ -25,19 +22,18 @@ if(!isset($param) || $param[0] == "")
-
  • > +
    • >


    • @@ -52,67 +48,70 @@ if(!isset($param) || $param[0] == "") "; - echo "$field"; - echo "$type"; - echo "\n"; - echo "\n"; - echo "\n"; - echo ""; - } - echo "
      "; -?> + echo ""; + echo "$field"; + echo "$type"; + echo "\n"; + echo "\n"; + echo "\n"; + echo ""; + } + echo "
      "; + ?>
    - 0) $sql_query .= ",$param[$i]"; - $i++; - } - $sql_query .= " from $table"; - if ($where != "") { - $sql_query .= " where $where"; - } else { - $sql_query .= " where 1"; - for ($i=0;$i") $cmp=""; - } - $sql_query .= " and $names[$i] $cmp $quot$fields[$i]$quot"; - } - } - } - Header("Location:sql.php3?sql_query=".urlencode($sql_query)."&goto=db_details.php3&server=$server&lang=$lang&db=$db&table=$table&pos=0&sessionMaxRows=$sessionMaxRows"); + 0) $sql_query .= ",$param[$i]"; + $i++; + } + $sql_query .= " from $table"; + if ($where != "") { + $sql_query .= " where $where"; + } + else { + $sql_query .= " where 1"; + for ($i=0;$i") $cmp=""; + } + $sql_query .= " and $names[$i] $cmp $quot$fields[$i]$quot"; + } + } + } + if (empty($sessionMaxRows)) { + include("config.inc.php3"); + $sessionMaxRows = $cfgMaxRows; + } + Header("Location:sql.php3?sql_query=".urlencode($sql_query)."&goto=db_details.php3&server=$server&lang=$lang&db=$db&table=$table&pos=0&sessionMaxRows=$sessionMaxRows"); +} ?>