api.private.sql_functions.php - JustDerb/Snack-Tack GitHub Wiki

api/private/sql_functions.php

Include this file whenever you need to talk to the mySQL database. Connections will be established and you only need $st_sql to reference the connection.

st_mysql

__construct()

Establishes a connection to the database using the specified credentials in api/private/pass/sql.php

__destruct()

Closes the connection to the database

Variable Type Description
$st_sql_d Database Object Object that holds the connection to the mySQL database
$st_sql int Resource ID for mySQL to make queries with