This repository has been archived by the owner on May 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
ratajs edited this page Mar 11, 2017
·
3 revisions
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:
Or:
Object of extension.
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 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.
Return value:class mySmysql extends Smysql { protected $host = “
Server address”; protected $user = “
Username”; protected $password = “
Password”; protected $db = “
Database name”; }; $object = new mySmysql();
Object of extension.