attempted fix: §_GET["id"]
parent
61db89465a
commit
7a4004e088
|
@ -3,13 +3,6 @@ session_start();
|
|||
%NO_CHEAP_SESSION_STEALING%
|
||||
%PLEAZE_NO_CACHE%
|
||||
$navbar="boards";
|
||||
function _GET($par, $parType = '') {
|
||||
if($parType == '') {
|
||||
$parType = gettype($par);
|
||||
}
|
||||
$return = filter_input(INPUT_GET, $par, FILTER_SANITIZE_NUMBER_INT);
|
||||
}
|
||||
$id = _GET('id');
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
@ -29,7 +22,7 @@ $id = _GET('id');
|
|||
$error = false;
|
||||
$error_message = "";
|
||||
if (!$error) {
|
||||
$statement = $pdo->prepare("SELECT * FROM boards WHERE id=$id");
|
||||
$statement = $pdo->prepare("SELECT * FROM boards WHERE id=$_GET["id"]");
|
||||
$statement->execute();
|
||||
$statement->fetchAll() as $ROW;
|
||||
echo "$ROW[name]";
|
||||
|
|
Loading…
Reference in New Issue