我收到以下语法错误语法错误,意外的'priceid'(T_STRING),期待','或';'在给出这段代码时:
<?php
$listObject = new webLists($DBH);
$price = $listObject->getPricesForUser($_SESSION['userData']['user_id']);
foreach ($price as $key => $value) {
echo '<tr><td>'.date('d F, Y', strtotime($value['date'])).
'</td><td>'." "."£".$value['value'].
'</td><td>'.
'<button class = "button" data-id = $value['priceid'] data-toggle="modal" class="edit" data-target="#editPrice"><i class="material-icons"> create</i></button>'.'</td></tr>';
}
?>