\DB::select( 'id' ) ->from( 'users' ) ->where( 'username', '=', $username ) ->where( 'password', '=', $password ) ->execute();
SELECT id FROM users WHERE username = '$username' AND password = '$password'
$query = \DB::select( 'id' ) ->from( 'users' ) ->where( 'username', '=', $username ) ->where( 'password', '=', $password ) ->execute(); $sql = (string) $query;
$query = \DB::select( 'id' ) ->from( 'users' ) ->where( 'username', '=', $username ) ->where( 'password', '=', $password ); $sql = (string) $query; $result = $query->execute();
It looks like you're new here. If you want to get involved, click one of these buttons!