final fix?
parent
7de4ecac1e
commit
0ababf4ec4
|
@ -25,7 +25,7 @@ $navbar="boards";
|
||||||
$statement = $pdo->prepare("SELECT * FROM boards WHERE id=:id");
|
$statement = $pdo->prepare("SELECT * FROM boards WHERE id=:id");
|
||||||
$statement->execute(array("id"=>$_GET['id']));
|
$statement->execute(array("id"=>$_GET['id']));
|
||||||
$result = $statement->fetch();
|
$result = $statement->fetch();
|
||||||
echo $result;
|
echo $result['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