note 118421 added to mysqli.real-escape-string
| From: | anon | Date: | Thu, 03 Dec 2015 17:02:55 +0000 |
| Subject: | note 118421 added to mysqli.real-escape-string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-204270@lists.php.net to get a copy of this message | ||
if ($_SERVER['REQUEST_METHOD'] == "GET" &&
isset($_GET['value'])) {
$id = trim($link->real_escape_string($_GET['value']));
$sql = "DELETE FROM database WHERE IDItem = $id";
if (!$res = $link->query($sql)) {
$_SESSION['alertify'] = 'alertify.error("' . $link->error .
'")';
} else {
$_SESSION['alertify'] = 'alertify.success("' . $value . ' was
succesfully deleted")';
}
}
----
Server IP: 72.52.91.14
Probable Submitter: 2a02:1811:9c3b:1800:e88a:f12c:1a02:443
----
Manual Page -- http://php.net/manual/en/mysqli.real-escape-string.php
Edit -- https://master.php.net/note/edit/118421
Del: integrated -- https://master.php.net/note/delete/118421/integrated
Del: useless -- https://master.php.net/note/delete/118421/useless
Del: bad code -- https://master.php.net/note/delete/118421/bad+code
Del: spam -- https://master.php.net/note/delete/118421/spam
Del: non-english -- https://master.php.net/note/delete/118421/non-english
Del: in docs -- https://master.php.net/note/delete/118421/in+docs
Del: other reasons-- https://master.php.net/note/delete/118421
Reject -- https://master.php.net/note/reject/118421
Search -- https://master.php.net/manage/user-notes.php