Documentation

Database
in package

Interaction in SQL with safe statements

Table of Contents

Methods

connectDatabase()  : PDO
Connexion to the database with secrets keys aviables on .env file
InsertSQL()  : bool|PDOStatement
Create SQL request prepared to avoid injection, don't forget to add verify &/or sanitize functions for more safety

Methods

connectDatabase()

Connexion to the database with secrets keys aviables on .env file

public static connectDatabase() : PDO
Return values
PDO

object to manipulate SQL

InsertSQL()

Create SQL request prepared to avoid injection, don't forget to add verify &/or sanitize functions for more safety

public static InsertSQL(string $Query) : bool|PDOStatement
Parameters
$Query : string

request to forge

Return values
bool|PDOStatement

return prepared SQL request


        
On this page

Search results