<?php
require '/table/connect.php';
echo '<ul>';
$query = $pdo->query("SELECT * FROM `usertable1` WHERE `owner` == '$owner'");
while($row = $query->fetch(PDO::FETCH_OBJ)) {
echo '<li><a href="/tables/new.php"><div class="box1"><h1>'.$row->title.'</h1><hr><p>Открыть <i class="fas fa-door-open"></i></p></div></a></li>';
}
echo '</ul>';
?>
<?php
$dsn = 'mysql:host=localhost; dbname=id14206595_reg';
$pdo = new PDO($dsn, 'id14206595_lotvw','k~~^RlBz[7!7Sr~6');
$owner = $_SESSION['id'];
echo '<ul>';
$query = $pdo->query("SELECT * FROM `usertable1` WHERE `owner`='$owner'");
while($row = $query->fetch(PDO::FETCH_OBJ)) {
echo '<li><a href="/tables/new.php"><div class="box1"><h1>'.$row->title.'</h1><hr><p>Открыть <i class="fas fa-door-open"></i></p></div></a></li>';
}
echo '</ul>';
?>
"SELECT * FROM `usertable1` WHERE `owner`='$owner'"