\LibDatabaseInterface

Summary

Methods
Constants
rows()
fetch()
insert()
update()
delete()
lastInsertId()
error()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

rows()

rows(string  $sql, array  $array = array(), object  $fetchMode = 'array') : array

method for multiple rows selecting records from a database

Parameters

string $sql

sql query

array $array

named params

object $fetchMode

Returns

array —

returns an array of records

Examples

iyi ornekl sayfalar model içinde vardır getKategoriSayfalar
** File not found : en **

fetch()

fetch(string  $sql, object  $fetchMode = 'array') : array

tek bir datayı gönderir

Parameters

string $sql

sql query

object $fetchMode

Returns

array —

returns an array of records

insert()

insert(string  $table, array  $data) 

insert method

Parameters

string $table

table name

array $data

array of columns and values

update()

update(string  $table, array  $data, array  $where) 

update method

Parameters

string $table

table name

array $data

array of columns and values

array $where

array of columns and values

delete()

delete(string  $table, array  $where, integer  $limit = 1) 

Delete method

Parameters

string $table

table name

array $where

array of columns and values

integer $limit

limit number of records

lastInsertId()

lastInsertId() 

son eklenenin id numarası

error()

error() 

son hatayı verir