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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -