...

View Full Version : Syntax issue?



Daniellez
03-06-2009, 11:00 AM
This bit of code has worked for a while but on a new site (and host) is causing an error: Parse error: syntax error, unexpected '=' in /admin.php on line 111

<?php=$_GET['do']?>

kokjj87
03-06-2009, 11:05 AM
For php shorthand tag

<?=$_GET['do']?>
OR

<?php echo $_GET['do'];?>

Iszak
03-06-2009, 11:07 AM
You should use the full tags, because of the conflict with XML declarations. So as kokjj87 said use.


<?php echo $_GET['do'] ?>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum