I have the following php code
$bigImageSrc = 'images/'.$prodXML->bottles->bottle[$i]->bigImage;
$text = $prodXML->bottles->bottle[$i]->title;
$title = $prodXML->bottles->bottle[$i]->text;
echo "<a href=javascript:void(0); onClick=showProduct('$bigImageSrc', '$text', '$title');>
but I'm getting this error:
syntax error
showProduct('images/image1.jpg',
It works for just one var in the showProduct function.
Any ideas where I'm going wrong?