\doxysection{reiniciar.\+php}
\hypertarget{reiniciar_8php_source}{}\label{reiniciar_8php_source}\index{api/reiniciar.php@{api/reiniciar.php}}
\mbox{\hyperlink{reiniciar_8php}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{reiniciar_8php_source_l00001}00001\ <?php}
\DoxyCodeLine{\Hypertarget{reiniciar_8php_source_l00002}00002\ }
\DoxyCodeLine{\Hypertarget{reiniciar_8php_source_l00022}00022\ \textcolor{comment}{//\ Conecta\ com\ o\ banco\ de\ dados}}
\DoxyCodeLine{\Hypertarget{reiniciar_8php_source_l00023}00023\ require(\textcolor{stringliteral}{'connect.php'});}
\DoxyCodeLine{\Hypertarget{reiniciar_8php_source_l00024}\mbox{\hyperlink{reiniciar_8php_a8abe176bc41afd728f32ba8c506cbd98}{00024}}\ }
\DoxyCodeLine{\Hypertarget{reiniciar_8php_source_l00028}00028\ \mbox{\hyperlink{reiniciar_8php_a8abe176bc41afd728f32ba8c506cbd98}{\$r}}\ =\ \mbox{\hyperlink{connect-local_8php_aa8a5a87b9c1a6a0819b88447cbe41877}{\$conn}}-\/>query(}
\DoxyCodeLine{\Hypertarget{reiniciar_8php_source_l00029}00029\ \ \ \ \ \textcolor{stringliteral}{"{}UPDATE\ \`{}Candidato`}}
\DoxyCodeLine{\Hypertarget{reiniciar_8php_source_l00030}00030\ \textcolor{stringliteral}{\ \ \ \ SET\ votos\ =\ 0"{}}}
\DoxyCodeLine{\Hypertarget{reiniciar_8php_source_l00031}00031\ );}
\DoxyCodeLine{\Hypertarget{reiniciar_8php_source_l00032}00032\ }
\DoxyCodeLine{\Hypertarget{reiniciar_8php_source_l00033}00033\ \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{reiniciar_8php_source_l00034}00034\ \textcolor{comment}{\ *\ Retorna\ erro\ em\ caso\ de\ falha\ na\ query.}}
\DoxyCodeLine{\Hypertarget{reiniciar_8php_source_l00035}00035\ \textcolor{comment}{\ *\ Caso\ contrário,\ redireciona\ de\ volta\ para\ a\ página\ de\ resultados.}}
\DoxyCodeLine{\Hypertarget{reiniciar_8php_source_l00036}00036\ \textcolor{comment}{\ */}}
\DoxyCodeLine{\Hypertarget{reiniciar_8php_source_l00038}00038\ \textcolor{keywordflow}{if}\ (!\mbox{\hyperlink{reiniciar_8php_a8abe176bc41afd728f32ba8c506cbd98}{\$r}})\ \{}
\DoxyCodeLine{\Hypertarget{reiniciar_8php_source_l00039}00039\ \ \ \ \ http\_response\_code(500);}
\DoxyCodeLine{\Hypertarget{reiniciar_8php_source_l00040}00040\ \ \ \ \ die(\textcolor{stringliteral}{"{}Erro\ ao\ reiniciar\ votos."{}});}
\DoxyCodeLine{\Hypertarget{reiniciar_8php_source_l00041}00041\ \}\ \textcolor{keywordflow}{else}\ \{}
\DoxyCodeLine{\Hypertarget{reiniciar_8php_source_l00042}00042\ \ \ \ \ header(\textcolor{stringliteral}{"{}Location:\ ./resultado.php"{}});}
\DoxyCodeLine{\Hypertarget{reiniciar_8php_source_l00043}00043\ \ \ \ \ die();}
\DoxyCodeLine{\Hypertarget{reiniciar_8php_source_l00044}00044\ \}}

\end{DoxyCode}
