html - error in syntax with php code -
i trying encode synopsis following code
<?php <li><a href="?page=<?php echo base64_encode("("synopsis")&lang=hn");?>" <?php if($page == 'synopsis'){?>class="active"<?}?>>dec</a></li> ?>
but when try encode shows error like
parse error: syntax error, unexpected t_string in /var/www/html/header.php on line 33
please, me syntax error. not able solve it
any appreciated
leave surrounding <?php .. ?>
off when use file template.
you have escape " when inside double quotes:
"(\"synopsis\")&lang=hn"
Comments
Post a Comment