Gazelle/sections/questions/take_ask_question.php
2013-10-14 08:00:53 +00:00

21 lines
318 B
PHP

<?
authorize();
$Question = db_string($_POST['question']);
if (empty($Question)) {
error("No question asked");
}
$UserID = $LoggedUser['ID'];
$Date = sqltime();
$DB->query("
INSERT INTO user_questions
(Question, UserID, Date)
VALUES
('$Question', '$UserID', '$Date')");
header("Location: questions.php");