MMM
0
Q:

laravel query db::raw

DB::select('SELECT * FROM users WHERE name = "'.Input::get('name').'"');
1
$someVariable = Input::get("some_variable");

$results = DB::select( DB::raw("SELECT * FROM some_table WHERE some_col = '$someVariable'") );
0
DB::select('SELECT * FROM users WHERE name = ?', array(Input::get('name')));
1

New to Communities?

Join the community