new drop table link
This commit is contained in:
@@ -7,7 +7,9 @@ $Source$
|
|||||||
|
|
||||||
2001-07-17 Marc Delisle <lem9@users.sourceforge.net>
|
2001-07-17 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* user_details.php3, bugs 441987, 441990:
|
* user_details.php3, bugs 441987, 441990:
|
||||||
corrections thanks to vinay and girish @sanisoft.com:
|
corrections thanks to vinay and girish @sanisoft.com
|
||||||
|
* tbl_properties.php3, new link to drop table, thanks to
|
||||||
|
Stuart Logan <logan69@users.sourceforge.net> for the idea
|
||||||
|
|
||||||
2001-07-17 Steve Alberty <alberty@neptunlabs.de>
|
2001-07-17 Steve Alberty <alberty@neptunlabs.de>
|
||||||
* tbl_addfield.php3: add trouble detection if insert field failed
|
* tbl_addfield.php3: add trouble detection if insert field failed
|
||||||
|
@@ -22,6 +22,12 @@ mysql_select_db($db);
|
|||||||
/**
|
/**
|
||||||
* Set parameters for links
|
* Set parameters for links
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// it would be better to rename this variable "link_parameters" because
|
||||||
|
// "query" is often used by developers for a quick query
|
||||||
|
// and the real $query has to be reinitialized
|
||||||
|
// (I had to rename $query to $query_tmp somewhere in this script)
|
||||||
|
|
||||||
$query = "server=$server&lang=$lang&db=$db&table=$table&goto=tbl_properties.php3";
|
$query = "server=$server&lang=$lang&db=$db&table=$table&goto=tbl_properties.php3";
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@@ -803,8 +809,8 @@ if (MYSQL_MAJOR_VERSION == '3.23' && intval(MYSQL_MINOR_VERSION) >= 22) {
|
|||||||
<!-- Table type -->
|
<!-- Table type -->
|
||||||
<?php
|
<?php
|
||||||
// modify robbat2 code - staybyte - 11. June 2001
|
// modify robbat2 code - staybyte - 11. June 2001
|
||||||
$query = "SHOW VARIABLES LIKE 'have_%'";
|
$query_tmp = "SHOW VARIABLES LIKE 'have_%'";
|
||||||
$result = mysql_query($query);
|
$result = mysql_query($query_tmp);
|
||||||
if ($result != false && mysql_num_rows($result) > 0) {
|
if ($result != false && mysql_num_rows($result) > 0) {
|
||||||
while ($tmp = mysql_fetch_array($result)) {
|
while ($tmp = mysql_fetch_array($result)) {
|
||||||
if (isset($tmp['Variable_name'])) {
|
if (isset($tmp['Variable_name'])) {
|
||||||
@@ -874,6 +880,9 @@ else { // MySQL < 3.23
|
|||||||
} // end MySQL < 3.23
|
} // end MySQL < 3.23
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<a href="sql.php3?<?php echo $query; ?>&goto=db_details.php3&reload=true&sql_query=<?php echo urlencode("DROP TABLE $table"); ?>&zero_rows=<?php echo urlencode($strTable . ' ' . $table . ' ' . $strHasBeenDropped); ?>"><?php echo $strDrop . ' ' . $table; ?></a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
Reference in New Issue
Block a user