another fix
parent
deb79c01b6
commit
1c677ae3c3
|
@ -24,7 +24,7 @@ $navbar="boards";
|
||||||
if (!$error) {
|
if (!$error) {
|
||||||
$statement = $pdo->prepare("SELECT * FROM boards WHERE id=$_GET['id']");
|
$statement = $pdo->prepare("SELECT * FROM boards WHERE id=$_GET['id']");
|
||||||
$statement->execute();
|
$statement->execute();
|
||||||
$statement->fetchAll()[0]['name']";
|
echo $statement->fetchAll()[0]['name']";
|
||||||
}
|
}
|
||||||
if (!$result) {
|
if (!$result) {
|
||||||
$error_message = "Error: SQL error.\n" . $statement->queryString . "\n" . $statement->errorInfo()[2];
|
$error_message = "Error: SQL error.\n" . $statement->queryString . "\n" . $statement->errorInfo()[2];
|
||||||
|
|
Loading…
Reference in New Issue