Hi, I'm trying to echo a typerlink to user who has already login , and show just text to those who haven't login.
<?php if(isset($_SESSION['MM_Username'])){
echo"<a href=\"review.php?prod_name="$row_products['prod_name']"\"> review </a>";}
else {echo ("review");} ?>
when I open the page it keep saying "Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' "
can anyone tell me why? thanks!