Position Where

Position Where

reru.academic1reru.academic1 Posts: 10Questions: 2Answers: 0

https://editor.datatables.net/examples/datatables/properties.html

options( function($db) {
return $db->select('sites', array('id', 'name', 'continent'))->fetchAll();
}

help me howto where id = '1'

Replies

  • allanallan Posts: 63,434Questions: 1Answers: 10,458 Site admin

    ->select() takes an optional third parameter for the where condition, which can be used for simple conditions such as this:

    return $db->select('sites', ['id', 'name', 'continent'], ['id' => 1])->fetchAll();
    

    Allan

Sign In or Register to comment.