Skip to content

Instantly share code, notes, and snippets.

@shadowhand
Created April 1, 2009 00:47
Show Gist options
  • Save shadowhand/88484 to your computer and use it in GitHub Desktop.
Save shadowhand/88484 to your computer and use it in GitHub Desktop.
<?php
// Standard QUery
$query = DB::query('SELECT * FROM users WHERE username = :username LIMIT 1');
$query->set(':username', 'shadowhand');
$result = $query->execute();
// Builder Query
$query = DB::select('*')->from('users')->where('username', '=', ':username')->limit(1);
$query->set(':username', 'shadowhand')
$result = $query->execute();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment