向用户展示他的产品

This is my first year with HTML, PHP, JAVASCRIPT and mysql!

And i am having a problem, im making a website that users can only see them products. For example: Admin created a product for MARTA, when MARTA log in she can see her product.

I have created the table USER_EQUIPMENT but i don't know how can i use it like i want.

I made something like this:

function getEquipment($name)
{
    $query = "select * from equipments where name = '$name'";
    $this->connect();
    $res = $this->execute($query);
    $this->disconnect();
    return $res;
}

and then i called it like:

$name = $_SESSION['name'];
        include_once('DataAccess.php');
        $da = new DataAccess();
        $res = $da->getEquipment($name);

But i doesn't get the equipment by the name. Little help please?

Thanks.