From 367f22546678b85077aeb848475295683db608c2 Mon Sep 17 00:00:00 2001 From: Steve Alberty Date: Mon, 11 Jun 2001 11:15:26 +0000 Subject: [PATCH] regards capability of mysql installation to view different table types --- tbl_properties.inc.php3 | 35 ++++++++++++++++++++++++++--------- tbl_properties.php3 | 37 +++++++++++++++++++++++++++---------- 2 files changed, 53 insertions(+), 19 deletions(-) diff --git a/tbl_properties.inc.php3 b/tbl_properties.inc.php3 index dbfc4d3ef..d06c4be05 100755 --- a/tbl_properties.inc.php3 +++ b/tbl_properties.inc.php3 @@ -197,29 +197,46 @@ for($i=0 ; $i<$num_fields; $i++) ?> = "3.23") { echo "$strTableComments:
"; ?> 0){ + while($tmp=mysql_fetch_array($result)){ + if (isset($tmp["Variable_name"])) switch ($tmp["Variable_name"]){ + case 'have_bdb': if (isset($tmp["Variable_name"]) && $tmp["Value"]=='YES') $tbl_bdb=true; break; + case 'have_gemini': if (isset($tmp["Variable_name"]) && $tmp["Value"]=='YES') $tbl_gemini=true; break; + case 'have_innodb': if (isset($tmp["Variable_name"]) && $tmp["Value"]=='YES') $tbl_innodb=true; break; + case 'have_isam': if (isset($tmp["Variable_name"]) && $tmp["Value"]=='YES') $tbl_isam=true; break; + } + } +} + echo $strTableType.":"; ?>

diff --git a/tbl_properties.php3 b/tbl_properties.php3 index f6d2d01b9..0018e25e5 100755 --- a/tbl_properties.php3 +++ b/tbl_properties.php3 @@ -439,15 +439,15 @@ echo " \n"; =3) +if(MYSQL_MAJOR_VERSION == "3.23" && intval(MYSQL_MINOR_VERSION)>=22) { ?>

  •   - +
    + +
      &display=simple&">   - - -  &display=simple&">   @@ -455,13 +455,15 @@ if(MYSQL_MAJOR_VERSION == "3.23" && intval(MYSQL_MINOR_VERSION)>=3) &display=simple&">   - - -  &display=simple&">  
    +  +
  •  
    @@ -476,19 +478,34 @@ if(MYSQL_MAJOR_VERSION == "3.23" && intval(MYSQL_MINOR_VERSION)>=3)
  •   +0){ + while($tmp=mysql_fetch_array($result)){ + if (isset($tmp["Variable_name"])) switch ($tmp["Variable_name"]){ + case 'have_bdb': if (isset($tmp["Variable_name"]) && $tmp["Value"]=='YES') $tbl_bdb=true; break; + case 'have_gemini': if (isset($tmp["Variable_name"]) && $tmp["Value"]=='YES') $tbl_gemini=true; break; + case 'have_innodb': if (isset($tmp["Variable_name"]) && $tmp["Value"]=='YES') $tbl_innodb=true; break; + case 'have_isam': if (isset($tmp["Variable_name"]) && $tmp["Value"]=='YES') $tbl_isam=true; break; + } + } + } +?>