I don't understand why this gives errors. I have used it before in .php hosted gallery pages etc.
PHP Code:
{
echo "<tr><td align=\"center\" colspan=\"".(COL_CATEG * 2)."\"><a href=\"".$PHP_SELF."?categ=".$categ."&sta=".($sta - $show)."\"><img border=\"0\" src=\"http://site.com/members/images/back.jpg\" style=\"border: 1px solid #FF3399\" alt=\"Previous page of members area content\" width=\"150\" height=\"45\"></a>
nbsp;<a href=\"<?=$_GET["categ"]?>_next.php\"><img border=\"0\" src=\"http://site.com/members/images/next.jpg\" style=\"border: 1px solid #FF3399\" alt=\"Next page of members area content\" width=\"150\" height=\"45\"></a></td></tr>";
This is the code giving the error:
PHP Code:
<a href=\"<?=$_GET["categ"]?>_next.php\">
I have also used:
PHP Code:
<a href=\"<?=$_GET[\"categ\"]?>_next.php\">
This is the error:
Parse error: parse error, unexpected '\"', expecting T_STRING or T_VARIABLE or T_NUM_STRING
Ideas?
Thanks.