\mysql_database_connection

Mysql Connection

Summary

Methods
Properties
Constants
__construct()
Select()
Update()
Insert()
Delete()
Error()
$host
$user
$password
$database
$query
$debug
$time
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$host

$host : string

Host

Type

string — the host

$user

$user : string

User

Type

string — the user

$password

$password : string

Password

Type

string — the password

$database

$database : string

Database

Type

string — the database

$query

$query : string

Query

Type

string — the query

$debug

$debug : boolean

If debug mode is true, we don't show errors

Type

boolean — the debug

$time

$time : float

Execution time

Type

float — seconds

Methods

__construct()

__construct()

Constructor of class

Select()

Select(string $query) : array

Select data and put it to an array

Parameters

string $query

Query

Returns

array —

Rows

Update()

Update(string $query)

Update data

Parameters

string $query

Query

Insert()

Insert(string $query)

Insert data

Parameters

string $query

Query

Delete()

Delete(string $query)

Delete data

Parameters

string $query

Query

Error()

Error()

Show errors if it has