\hypertarget{get__questions_8php}{}\doxysection{/opt/lampp/htdocs/sfcode/backend/questions/get\+\_\+questions.php File Reference}
\label{get__questions_8php}\index{/opt/lampp/htdocs/sfcode/backend/questions/get\_questions.php@{/opt/lampp/htdocs/sfcode/backend/questions/get\_questions.php}}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{get__questions_8php_a1ad0ffe3fa0755e56a1a6bb40c232b8a}\label{get__questions_8php_a1ad0ffe3fa0755e56a1a6bb40c232b8a}} 
{\bfseries \$sql2} = \char`\"{}SELECT $\ast$ FROM questions\char`\"{}
\item 
\mbox{\Hypertarget{get__questions_8php_a6efc15b5a2314dd4b5aaa556a375c6d6}\label{get__questions_8php_a6efc15b5a2314dd4b5aaa556a375c6d6}} 
{\bfseries \$data} = array()
\item 
if(\$result=\$mysqli-\/$>$query(\$sql2)) {\bfseries else}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
This script checks the questions present in the My\+SQL database, and sends the question info (title, problem statement, start and end time, and the author\textquotesingle{}s username) to the frontend. For this the script communicates with the My\+SQL server. Thus SQL injection has been handled. 

\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{get__questions_8php_a23e84a9d8c8378a55b6a1079882cbb35}\label{get__questions_8php_a23e84a9d8c8378a55b6a1079882cbb35}} 
\index{get\_questions.php@{get\_questions.php}!else@{else}}
\index{else@{else}!get\_questions.php@{get\_questions.php}}
\doxysubsubsection{\texorpdfstring{else}{else}}
{\footnotesize\ttfamily if ( \$result=\$mysqli-\/$>$query( \$sql2)) else}

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\{}
\DoxyCodeLine{    http\_response\_code(404)}

\end{DoxyCode}
