Show info of user by uid from other table
<p>This is my Rank table</p>

<p><a href="https://i.stack.imgur.com/BWKyn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BWKyn.png" alt=""></a></p>

<p>and this is my users table</p>

<p><a href="https://i.stack.imgur.com/sQiNj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sQiNj.png" alt=""></a>
I want to fetch users detail from two tables by using only his UserID.
Can someone help me with this ?</p>