The following line is supposed to print a list item which is a variable picture that points to a variable link
echo '<li><a href='http://www.twitter.com/'".$person."'>
<img src ="'.$person.'.jpg'.'"/></a></li>';
I am getting the following error though
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';'
I am pretty sure I’ve screwed up the syntax in the a href part as I’m not quite sure how to handle the variables in the URLs…
Help is appreciated….Thanks!
Just use variable interpolation there.