$dbinfo->list_table($tbl); } break; case 'DELETE': if (!isset($conf)) { echo "<p>About to delete record {$id} in table {$tbl}</p>"; echo "<p><strong><span style=\"color:#FF0000\">WARNING:</span> This operation CANNOT be undone!</strong></p>"; echo "<p>Please ensure that {$id} (the first field in the table) is a <strong>unique</strong> identifier otherwise multiple records may be deleted!</p>"; echo "<p><a href=\"{$target}?mode=delete&tbl={$tbl}&id={$id}&conf=y\">Click here to confirm the deletion</a></p>"; } else { $dbinfo->delete($tbl, $id, TRUE); $dbinfo->list_table($tbl); } break; case 'LIST': $dbinfo->list_table($tbl); break; case 'DEBUG': echo "<p>Contents of table_list:</p>\n<pre>" . print_r($dbinfo->get_table_list(), true) . "</pre>"; echo "<p>Contents of table_info:</p>\n<pre>" . print_r($dbinfo->get_table_array(), true) . "</pre>"; echo "<p>Displaying contents of members_confirmed:</p>"; foreach ($dbinfo->get_table_array("members_confirmed") as $field => $type) { //echo "<p>Field: $field Type: $type</p>"; echo "<p>Field: {$field} Type: " . $dbinfo->preg_match_between("^", "\\(", $type) . " - " . $dbinfo->preg_match_between("\\(", "\\)", $type) . "</p>"; //echo "<p>Field: $field Type: " . preg_match_between("\(", "\)", $type) . "</p>"; } break; default: break; } echo "<a href=\"{$target}?mode=list\">View All Table Lists</a> | <a href=\"{$target}?mode=debug\">Show Debug Info</a>";