Last active
August 29, 2015 14:07
-
-
Save bkozora/cf19d5e562fe802082bc to your computer and use it in GitHub Desktop.
Kohana Database Class Examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// How to insert using Kohana's Database class. Always forget the syntax... | |
$result = DB::insert('table', array('field1', 'field2', 'field3')) | |
->values(array('value1', 'value2', 'value3')) | |
->execute(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment