Need help with if and else

Hello,
I need to echo diferent links depending of an item on a database, but i don’t know how to write the code.
I guess i’m almost there and must be just a need of ( ) ’ " ; in the right places…
Can anyone help me?
I wrote this:

<?php 
        $tipo = $row_rs_clientes_detail['tipo'];
        if ($tipo='pilotos') echo "<a href='perfil_clientes.php?id=$row_rs_clientes_detail['id'];&tipo=$row_rs_clientes_detail['tipo'];'> perfil</a>";
        if ($tipo='equipas') echo "<a href='apresentacao_clientes.php?id=$row_rs_clientes_detail['id'];&tipo=$row_rs_clientes_detail['tipo'];'> apresentação</a>";
        if ($tipo='organizadores') echo "<a href='apresentacao_clientes.php?id=$row_rs_clientes_detail['id'];&tipo=$row_rs_clientes_detail['tipo'];'> apresentação</a>";
        ?>