fix typo
This commit is contained in:
parent
2f75cc78a0
commit
fc93c580f7
@ -94,11 +94,11 @@ if (!empty($action) && $_SESSION["password"] == $config["admin_pwd"]){
|
||||
if ($action == "getlog"){
|
||||
$idcko = $_POST["id"];
|
||||
if (empty($idcko)||$idcko == "*"){
|
||||
$query = "SELECT `ID`, `Action`, `ExtraInfo`, `LinkID`, `ContentID`, `Datetime`, `Timestamp`, `Nickname`, `IP` FROM Logs ORDER BY Timestamp DSC;";
|
||||
$query = "SELECT `ID`, `Action`, `ExtraInfo`, `LinkID`, `ContentID`, `Datetime`, `Timestamp`, `Nickname`, `IP` FROM Logs ORDER BY Timestamp DESC;";
|
||||
$stmt7 = $mysqli->prepare($query);
|
||||
}
|
||||
else{
|
||||
$query = "SELECT `ID`, `Action`, `ExtraInfo`, `LinkID`, `ContentID`, `Datetime`, `Timestamp`, `Nickname`, `IP` FROM Logs WHERE `LinkID` = ? OR `ContentID` = ? OR `Nickname` = ? OR `IP` = ? OR `ExtraInfo` = ? OR `Action` = ? OR `Datetime` = ? ORDER BY Timestamp DSC;";
|
||||
$query = "SELECT `ID`, `Action`, `ExtraInfo`, `LinkID`, `ContentID`, `Datetime`, `Timestamp`, `Nickname`, `IP` FROM Logs WHERE `LinkID` = ? OR `ContentID` = ? OR `Nickname` = ? OR `IP` = ? OR `ExtraInfo` = ? OR `Action` = ? OR `Datetime` = ? ORDER BY Timestamp DESC;";
|
||||
$stmt7 = $mysqli->prepare($query);
|
||||
$stmt7->bind_param("sssssss", $idcko, $idcko, $idcko, $idcko, $idcko, $idcko, $idcko);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user