Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.
ratajs edited this page Dec 19, 2017 · 3 revisions

logo

How to run extension


First include extension file with include command.
Then create object of extension. If the parameters are missing, this extension will use defaults from php.ini.
Syntax:
new Smysql([string $host = NULL, string $user = NULL, string $password = NULL[, string $database = NULL]])
Or:
Smysql([string $host = NULL, string $user = NULL, string $password = NULL[, string $database = NULL[, &$object]]])

host
- Server address.

user

- Username.

password

- Password.

database

- Database name. Write create[database name] to create new database.

object

- Empty or undefined object, if it’s mentioned, method won’t return anything and object of extension will be saved in this variable.
Or:

class mySmysql extends Smysql {
protected $host = “Server address”;
protected $user = “Username”;
protected $password = “Password”;
protected $db = “Database name”;
};
$object = new mySmysql();
Return value:
Object of extension.
Clone this wiki locally