Gazelle/sections/questions/take_ask_question.php

21 lines
318 B
PHP
Raw Normal View History

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