git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@740
7c3ca157-0c34-0410-bff1-
cbf682f78f5c
if ($_POST) {
$row = $_POST;
} elseif (strlen($_GET["name"])) {
- $result = $dbh->query("SHOW TRIGGERS LIKE '" . $dbh->escape_string(addcslashes($_GET["trigger"], "%_")) . "'");
- while ($row = $result->fetch_assoc()) {
- // LIKE is used to compare the table name
- if ($row["Trigger"] === $_GET["name"]) {
- break;
- }
- }
+ $result = $dbh->query("SHOW TRIGGERS WHERE `Trigger` = '" . $dbh->escape_string($_GET["name"]) . "'");
+ $row = $result->fetch_assoc();
$result->free();
}
?>