PHP错误:“语法错误,意外T_STRING,期待','或';'”

时间:2018-04-18 14:45:48

标签: php sql

我收到以下语法错误语法错误,意外的'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>'."&nbsp"."&pound;".$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>';
   }
?>

0 个答案:

没有答案