Position Where

Position Where

reru.academic1reru.academic1 Posts: 7Questions: 1Answers: 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: 61,972Questions: 1Answers: 10,160 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.