\MySQLDB
MySQL database old driver abstraction class. Used for PHP <7 legacy.
Synopsis
class MySQLDB
{
- // members
- public $connection;
- public integer $last_query_num = 0;
- public array $db_config = ;
- public MySQL $lastresult;
- public bool $assoc = true;
- // methods
- public MySQLDB __construct()
- public MySQL query()
- public void ExecuteReader()
- public MySQL ExecuteNonQuery()
- public array Read()
- public string ReadSingleRow()
- public void db_error()
- public string escape()
- public void disconnect()
Members
public
Methods
public
- __construct() — Initialises connection with MySQL database server and selects needed db
- ExecuteNonQuery() — Link to query method
- ExecuteReader() — Executes query and makes abstract data read available
- Read() — Returns array with from the current query result
- ReadSingleRow() — Returns one row from the current query result
- db_error() — Prints MySQL error message; switching DEBUG, prints MySQL error description or sends it to administrator
- disconnect() — Disconnects from database server
- escape() — Escapes string to use in SQL query
- query() — Executes query and returns result identifier