mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-02-23 13:49:02 +00:00
20 lines
325 B
PHP
20 lines
325 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");
|