framework/functionpdo.func.php

[WeEngine System] Copyright (c) 2014 WE7.CC WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.

Functions

pdo()

pdo() 

pdos()

pdos(  $table = '') 

Parameters

$table

pdo_query()

pdo_query(  $sql,   $params = array()) 

Parameters

$sql
$params

pdo_fetchcolumn()

pdo_fetchcolumn(  $sql,   $params = array(),   $column) 

Parameters

$sql
$params
$column

pdo_fetch()

pdo_fetch(  $sql,   $params = array()) 

Parameters

$sql
$params

pdo_fetchall()

pdo_fetchall(  $sql,   $params = array(),   $keyfield = '') 

Parameters

$sql
$params
$keyfield

pdo_get()

pdo_get(  $tablename,   $condition = array(),   $fields = array()) 

Parameters

$tablename
$condition
$fields

pdo_getall()

pdo_getall(  $tablename,   $condition = array(),   $fields = array(),   $keyfield = '',   $orderby = array(),   $limit = array()) 

Parameters

$tablename
$condition
$fields
$keyfield
$orderby
$limit

pdo_getslice()

pdo_getslice(  $tablename,   $condition = array(),   $limit = array(),   $total = null,   $fields = array(),   $keyfield = '',   $orderby = array()) 

Parameters

$tablename
$condition
$limit
$total
$fields
$keyfield
$orderby

pdo_getcolumn()

pdo_getcolumn(  $tablename,   $condition = array(),   $field) 

Parameters

$tablename
$condition
$field

pdo_exists()

pdo_exists(  $tablename,   $condition = array()) 

Parameters

$tablename
$condition

pdo_count()

pdo_count(  $tablename,   $condition = array(),   $cachetime = 15) 

Parameters

$tablename
$condition
$cachetime

pdo_update()

pdo_update(  $table,   $data = array(),   $params = array(),   $glue = 'AND') 

Parameters

$table
$data
$params
$glue

pdo_insert()

pdo_insert(  $table,   $data = array(),   $replace = FALSE) 

Parameters

$table
$data
$replace

pdo_delete()

pdo_delete(  $table,   $params = array(),   $glue = 'AND') 

Parameters

$table
$params
$glue

pdo_insertid()

pdo_insertid() 

pdo_begin()

pdo_begin() 

pdo_commit()

pdo_commit() 

pdo_rollback()

pdo_rollback() 

pdo_debug()

pdo_debug(  $output = true,   $append = array()) 

Parameters

$output
$append

pdo_run()

pdo_run(  $sql) 

Parameters

$sql

pdo_fieldexists()

pdo_fieldexists(  $tablename,   $fieldname = '') 

Parameters

$tablename
$fieldname

pdo_fieldmatch()

pdo_fieldmatch(  $tablename,   $fieldname,   $datatype = '',   $length = '') 

Parameters

$tablename
$fieldname
$datatype
$length

pdo_indexexists()

pdo_indexexists(  $tablename,   $indexname = '') 

Parameters

$tablename
$indexname

pdo_fetchallfields()

pdo_fetchallfields(  $tablename) 

Parameters

$tablename

pdo_tableexists()

pdo_tableexists(  $tablename) 

Parameters

$tablename