Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was 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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.