ちDAOょっと呼出

This commit is contained in:
2024-02-09 12:49:20 +09:00
parent 5a0cefbfbb
commit 445d6da9ef
+3 -7
View File
@@ -31,14 +31,10 @@ $mysqli = set_mysql ('miteruzo_bbs');
$mysqli -> set_charset ('utf8');
if ($result = $mysqli -> query ("SELECT * FROM threads WHERE id = $thread"))
if ($row = Dao\Thread -> find ($thread))
{
$row = $result -> fetch_assoc ();
$title = $row['title'];
$explain = $row['explain'];
$result -> close ();
$title = $row -> title;
$explain = $row -> explain;
}
if (isset ($_GET['id'])