\doxysection{api/connect.php File Reference}
\hypertarget{connect_8php}{}\label{connect_8php}\index{api/connect.php@{api/connect.php}}
\doxysubsubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{connect_8php_ad79b54e31bd1050001133c4d70f850fe}{\$servername}} = \$\+\_\+\+ENV\mbox{[}\textquotesingle{}MYSQLHOST\textquotesingle{}\mbox{]}
\begin{DoxyCompactList}\small\item\em Nome do servidor do banco de dados. \end{DoxyCompactList}\item 
\mbox{\hyperlink{connect_8php_a7691c0162d89de0b6ba47edcd8ba8878}{\$database}} = \$\+\_\+\+ENV\mbox{[}\textquotesingle{}MYSQLDATABASE\textquotesingle{}\mbox{]}
\begin{DoxyCompactList}\small\item\em Nome do banco de dados. \end{DoxyCompactList}\item 
\mbox{\hyperlink{connect_8php_a0eb82aa5f81cf845de4b36cd653c42cf}{\$username}} = \$\+\_\+\+ENV\mbox{[}\textquotesingle{}MYSQLUSER\textquotesingle{}\mbox{]}
\begin{DoxyCompactList}\small\item\em Nome do usuário. \end{DoxyCompactList}\item 
\mbox{\hyperlink{connect_8php_a607686ef9f99ea7c42f4f3dd3dbb2b0d}{\$password}} = \$\+\_\+\+ENV\mbox{[}\textquotesingle{}MYSQLPASSWORD\textquotesingle{}\mbox{]}
\begin{DoxyCompactList}\small\item\em Senha do usuário. \end{DoxyCompactList}\item 
\mbox{\hyperlink{connect_8php_aa0787efab4b22e8a212882f3409d4c77}{\$port}} = \$\+\_\+\+ENV\mbox{[}\textquotesingle{}MYSQLPORT\textquotesingle{}\mbox{]}
\begin{DoxyCompactList}\small\item\em Porta. \end{DoxyCompactList}\item 
\mbox{\hyperlink{connect_8php_ac01bf1cf041487498864d054b991f570}{\$protocol}} = \textquotesingle{}TCP\textquotesingle{}
\begin{DoxyCompactList}\small\item\em Protocolo. \end{DoxyCompactList}\item 
\mbox{\hyperlink{connect_8php_af10158dd74b75f1d337e83102d6b82ce}{\$charset}} = \textquotesingle{}utf8mb4\textquotesingle{}
\begin{DoxyCompactList}\small\item\em Conjunto de caracteres válidos. \end{DoxyCompactList}\item 
\mbox{\hyperlink{connect_8php_abe4cc9788f52e49485473dc699537388}{try}}
\begin{DoxyCompactList}\small\item\em Conexão com o banco de dados. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Variable Documentation}
\Hypertarget{connect_8php_af10158dd74b75f1d337e83102d6b82ce}\label{connect_8php_af10158dd74b75f1d337e83102d6b82ce} 
\index{connect.php@{connect.php}!\$charset@{\$charset}}
\index{\$charset@{\$charset}!connect.php@{connect.php}}
\doxysubsubsection{\texorpdfstring{\$charset}{\$charset}}
{\footnotesize\ttfamily \$charset = \textquotesingle{}utf8mb4\textquotesingle{}}



Conjunto de caracteres válidos. 



Definition at line \mbox{\hyperlink{connect_8php_source_l00038}{38}} of file \mbox{\hyperlink{connect_8php_source}{connect.\+php}}.

\Hypertarget{connect_8php_a7691c0162d89de0b6ba47edcd8ba8878}\label{connect_8php_a7691c0162d89de0b6ba47edcd8ba8878} 
\index{connect.php@{connect.php}!\$database@{\$database}}
\index{\$database@{\$database}!connect.php@{connect.php}}
\doxysubsubsection{\texorpdfstring{\$database}{\$database}}
{\footnotesize\ttfamily \$database = \$\+\_\+\+ENV\mbox{[}\textquotesingle{}MYSQLDATABASE\textquotesingle{}\mbox{]}}



Nome do banco de dados. 



Definition at line \mbox{\hyperlink{connect_8php_source_l00023}{23}} of file \mbox{\hyperlink{connect_8php_source}{connect.\+php}}.

\Hypertarget{connect_8php_a607686ef9f99ea7c42f4f3dd3dbb2b0d}\label{connect_8php_a607686ef9f99ea7c42f4f3dd3dbb2b0d} 
\index{connect.php@{connect.php}!\$password@{\$password}}
\index{\$password@{\$password}!connect.php@{connect.php}}
\doxysubsubsection{\texorpdfstring{\$password}{\$password}}
{\footnotesize\ttfamily \$password = \$\+\_\+\+ENV\mbox{[}\textquotesingle{}MYSQLPASSWORD\textquotesingle{}\mbox{]}}



Senha do usuário. 



Definition at line \mbox{\hyperlink{connect_8php_source_l00029}{29}} of file \mbox{\hyperlink{connect_8php_source}{connect.\+php}}.

\Hypertarget{connect_8php_aa0787efab4b22e8a212882f3409d4c77}\label{connect_8php_aa0787efab4b22e8a212882f3409d4c77} 
\index{connect.php@{connect.php}!\$port@{\$port}}
\index{\$port@{\$port}!connect.php@{connect.php}}
\doxysubsubsection{\texorpdfstring{\$port}{\$port}}
{\footnotesize\ttfamily \$port = \$\+\_\+\+ENV\mbox{[}\textquotesingle{}MYSQLPORT\textquotesingle{}\mbox{]}}



Porta. 



Definition at line \mbox{\hyperlink{connect_8php_source_l00032}{32}} of file \mbox{\hyperlink{connect_8php_source}{connect.\+php}}.

\Hypertarget{connect_8php_ac01bf1cf041487498864d054b991f570}\label{connect_8php_ac01bf1cf041487498864d054b991f570} 
\index{connect.php@{connect.php}!\$protocol@{\$protocol}}
\index{\$protocol@{\$protocol}!connect.php@{connect.php}}
\doxysubsubsection{\texorpdfstring{\$protocol}{\$protocol}}
{\footnotesize\ttfamily \$protocol = \textquotesingle{}TCP\textquotesingle{}}



Protocolo. 



Definition at line \mbox{\hyperlink{connect_8php_source_l00035}{35}} of file \mbox{\hyperlink{connect_8php_source}{connect.\+php}}.

\Hypertarget{connect_8php_ad79b54e31bd1050001133c4d70f850fe}\label{connect_8php_ad79b54e31bd1050001133c4d70f850fe} 
\index{connect.php@{connect.php}!\$servername@{\$servername}}
\index{\$servername@{\$servername}!connect.php@{connect.php}}
\doxysubsubsection{\texorpdfstring{\$servername}{\$servername}}
{\footnotesize\ttfamily \$servername = \$\+\_\+\+ENV\mbox{[}\textquotesingle{}MYSQLHOST\textquotesingle{}\mbox{]}}



Nome do servidor do banco de dados. 



Definition at line \mbox{\hyperlink{connect_8php_source_l00020}{20}} of file \mbox{\hyperlink{connect_8php_source}{connect.\+php}}.

\Hypertarget{connect_8php_a0eb82aa5f81cf845de4b36cd653c42cf}\label{connect_8php_a0eb82aa5f81cf845de4b36cd653c42cf} 
\index{connect.php@{connect.php}!\$username@{\$username}}
\index{\$username@{\$username}!connect.php@{connect.php}}
\doxysubsubsection{\texorpdfstring{\$username}{\$username}}
{\footnotesize\ttfamily \$username = \$\+\_\+\+ENV\mbox{[}\textquotesingle{}MYSQLUSER\textquotesingle{}\mbox{]}}



Nome do usuário. 



Definition at line \mbox{\hyperlink{connect_8php_source_l00026}{26}} of file \mbox{\hyperlink{connect_8php_source}{connect.\+php}}.

\Hypertarget{connect_8php_abe4cc9788f52e49485473dc699537388}\label{connect_8php_abe4cc9788f52e49485473dc699537388} 
\index{connect.php@{connect.php}!try@{try}}
\index{try@{try}!connect.php@{connect.php}}
\doxysubsubsection{\texorpdfstring{try}{try}}
{\footnotesize\ttfamily try}

{\bfseries Initial value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \ \mbox{\hyperlink{connect-local_8php_aa8a5a87b9c1a6a0819b88447cbe41877}{\$conn}}\ =\ \textcolor{keyword}{new}\ mysqli(\mbox{\hyperlink{connect_8php_ad79b54e31bd1050001133c4d70f850fe}{\$servername}},\ \mbox{\hyperlink{connect_8php_a0eb82aa5f81cf845de4b36cd653c42cf}{\$username}},\ \mbox{\hyperlink{connect_8php_a607686ef9f99ea7c42f4f3dd3dbb2b0d}{\$password}},\ \mbox{\hyperlink{connect_8php_a7691c0162d89de0b6ba47edcd8ba8878}{\$database}},\ \mbox{\hyperlink{connect_8php_aa0787efab4b22e8a212882f3409d4c77}{\$port}},\ \mbox{\hyperlink{connect_8php_af10158dd74b75f1d337e83102d6b82ce}{\$charset}})}

\end{DoxyCode}


Conexão com o banco de dados. 



Definition at line \mbox{\hyperlink{connect_8php_source_l00041}{41}} of file \mbox{\hyperlink{connect_8php_source}{connect.\+php}}.

