Здравствуйте! Не выводятся данные из бд
<?
if (!empty($_GET['id'])) {
$sql = 'SELECT * FROM catalog WHERE id='.intval($_GET['id']).' LIMIT 1';
if ($result = mysqli_query($link, $sql)) {
$row = mysqli_fetch_assoc($result);
$name = $row['name']; $id = $row['id'];
mysqli_free_result($result);
}
}
while($row = $result->fetch_assoc()) {
echo "<div><div class='popular-box'><div class='title'>" . $row["name"] . "<span>" . $row["description"] . "</span></div>"
. "<div class='img'><img src='" . $row["img"] . "'></div>"
. "<div class='price'>" . $row["price"] . " руб</div>"
. "<a href='#modal-order' data-toggle='modal' data-name=' . $row["name"] . ' class="modal-name"><span class='pe-7s-cart'></span></a></div></div>";
}
?>
Parse error: syntax error, unexpected '"', expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /var/www/u1544608/data/www/konucci.ru/catalog.php on line 21