I'm developing Web-Application into PHP & MYSQL using ANgular JS.

**please refer below code**

```
dhmsApp.controller('dhmsDetailsView',function($scope,$http, $routeParams){
var userId = $routeParams.id;
console.log(userId);

```

});

writing above code i got posted Browser URL id. please check with below screen-shot for your reference.

[![enter image description here](https://i.stack.imgur.com/98uBb.jpg)](https://i.stack.imgur.com/98uBb.jpg)

Problem is : 
How do i match or how do i write condition for above fetched user ID into Controller using PHP, MySql and angular js