ちDAOょっと呼出
This commit is contained in:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user