Browse Source

ちDAOょっと呼出

sqlite
みてるぞ 7 months ago
parent
commit
445d6da9ef
1 changed files with 3 additions and 7 deletions
  1. +3
    -7
      index.php

+ 3
- 7
index.php View File

@@ -31,14 +31,10 @@ $mysqli = set_mysql ('miteruzo_bbs');


$mysqli -> set_charset ('utf8'); $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']) if (isset ($_GET['id'])


Loading…
Cancel
Save