Hi Everybody,
I am working on php/myql shopping cart tutorial, but i do have an issue with concanation into my script, could somebody take a look and help, the error i hav is this one:
Parse error: syntax error, unexpected ‘"’, expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING)
I have tried to escaped the string, but got the same issue. here is the full code:
[php]
No products
"; echo "There are no products in this category"; } else { foreach ($stmt as $row) { echo""; if (empty($row['image'])) { echo""; } else { echo ""; } echo ""; echo ""; }//end of foreach loop echo "";
echo "" . $row['name'] . ""; echo "" . $row['description']; echo "OUR PRICE: £". sprintf('%.2f', $row['price']) . ""; echo "[buy]"; echo " |
[/php]
Regards