0

I get the following syntax error syntax error, unexpected 'priceid' (T_STRING), expecting ',' or ';' while giving this code:

<?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>';
   }
?>
jons4
  • 1
  • 1

0 Answers0