From 50f3073532c7ebd06411052df6a59b50dd768ce3 Mon Sep 17 00:00:00 2001 From: Steve Alberty Date: Wed, 27 Jun 2001 16:58:02 +0000 Subject: [PATCH] add support for alter table order by --- tbl_properties.php3 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/tbl_properties.php3 b/tbl_properties.php3 index 6532feb49..3447ce54a 100755 --- a/tbl_properties.php3 +++ b/tbl_properties.php3 @@ -25,6 +25,9 @@ if(MYSQL_MAJOR_VERSION == "3.23" && intval(MYSQL_MINOR_VERSION)>=3) if(isset($submittype)){ $result = mysql_query("ALTER TABLE $table TYPE=$tbl_type") or mysql_die(); } + if(isset($submitorderby) && !empty($order_field)){ + $result = mysql_query("ALTER TABLE $table ORDER BY $order_field") or mysql_die(); + } $result = mysql_query("SHOW TABLE STATUS LIKE '$table'") or mysql_die(); $showtable = mysql_fetch_array($result); @@ -344,6 +347,7 @@ echo " "; echo " \n"; +=3.23 && MYSQL_MINOR_VERSION>=34){ ?> +
  •   +: +
    + + + + +\n"; +reset($aryFields); +while(list ($junk,$fieldname) = each($aryFields)) { + echo "\n"; +} +echo "\n"; +?> + + +
    + +
  •