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