I'm trying to append an item id from my database to an endpoint url within a simplexml_load_file
function.
The function is called in the body section of an item page template that is part of a php mvc framework.
I've tried multiple different ways to fix the syntax error, and none seem to have worked.
Thanks in advance for your help.
[E_PARSE][Code 4] syntax error, unexpected '<'
My code:
<?php
//call our items xml file and store in object
$myItems = simplexml_load_file('http://www.example.org/test/items.php?item_id=' . <?php echo $this->item['item_id']; ?>');
?>