test
parent
1040afcd76
commit
4daa8e0472
|
@ -25,7 +25,7 @@ $navbar="boards";
|
||||||
$statement = $pdo->prepare("SELECT * FROM boards WHERE id=$_GET['id']");
|
$statement = $pdo->prepare("SELECT * FROM boards WHERE id=$_GET['id']");
|
||||||
$statement->execute();
|
$statement->execute();
|
||||||
$result = $statement->fetchAll();
|
$result = $statement->fetchAll();
|
||||||
echo $result[0]['name'];
|
echo $result;
|
||||||
}
|
}
|
||||||
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