Im trying to add a shopping cart to my website, I did what I usually do and try it out in a new, blank PHP file. Then when ive tested it and it works I put it into my website.
So it worked fine originally, so I tried to copy the whole code and paste it into the existing webpage I want it to be included in.
So I try it and it seems good, until I upload it and get the following error when I try to visit the page:
Parse error: syntax error, unexpected T_STRING in /home/vhosts/citytourism.eu5.org/cart/index.php on line 92
Im just creating a tourism website for a project at college. The PHP used can be seen below:
Where line 92 is:
$output[] = '<li>.$row['name'].': £'.$row['price'].'<br /><a href="cart.php?action=add&id='.$row['id'].'">Add to cart</a></li>';
If someone could help me identify whats wrong id really appreciate it.
Ive tried messing with it so there may be some other things wrong now, but either way, it always points me to the line pasted above.
Thanks
Help
















