0
 echo "<li><a href='phpActivator.php?delItem=<?php echo $row['id']; ?>'><i class='fa fa-edit' aria-hidden='true' style='color:#101820FF;'><span>Edit</span></i></a></li>;

I just want to link that command to my delete php page but it has error :

Parse error: syntax error, unexpected string content "", expecting "-" or identifier or variable or number in C:\xampp\htdocs\gireo\stock.php on line 96

  • 1) putting a PHP block and an echo inside a string makes no sense - you're already inside PHP, you don't need to open it again. learn about string concatenation. 2) you forgot to close the string with a `"` at the end, which should be obvious from double checking your work, also a decent code editor would highlight it for you anyway. – ADyson Jul 18 '21 at 09:11

0 Answers0