Method: db::row

Returns a single row from a table

Info

Syntax

db::row($table, $select='*', $where=null, $order=null)

Parameters

Return (mixed)

Example


$user = db::row('user', '*', array('id' => 1));
// sample result: array(
//    'id' => 1,
//    'username' => 'bastian',
//    'email' => 'mail@bastian-allgeier.de'
// );

$user = db::row('user', 'username', array('id' => 1));
// sample result: array(
//    'username' => 'bastian'
// );