Shortcuts in Model CI

PHOTO EMBED

Thu Feb 24 2022 09:08:59 GMT+0000 (UTC)

Saved by @patdevwork #php #codeigniter #database #model

$sql = "SELECT * FROM some_table WHERE id = ? AND status = ? AND author = ?";
$this->db->query($sql, array(3, 'live', 'Rick')); // insert in ci
content_copyCOPY