diff --git a/include/header.php b/include/header.php index 1f47a35..af725fd 100644 --- a/include/header.php +++ b/include/header.php @@ -18,7 +18,7 @@ $db->exec("CREATE TABLE IF NOT EXISTS questions( by INTEGER, question TEXT, date INTEGER, - answered INTEGER + status INTEGER );"); if(!$db->querySingle("SELECT EXISTS(SELECT * FROM users where id = 0);")){ diff --git a/user.php b/user.php index 276956d..992b8e2 100644 --- a/user.php +++ b/user.php @@ -52,7 +52,9 @@ if(isset($_SESSION["uid"])){ $u_prep->bindValue(":id", $current["by"], SQLITE3_INTEGER); $q_user = $u_prep->execute()->fetchArray(SQLITE3_ASSOC); - echo("
". $current["question"] ."
\n"); if($is_current_user){