View Single Post
Old 05-29-2005, 07:12 AM  
Adult Site Traffic
Confirmed User
 
Join Date: Mar 2003
Location: South-East of the Border of Disorder
Posts: 5,093
I need a php whiz smarter than me to look at this code.

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;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.
__________________

ALL Domains and Websites are GOING AWAY NOW! Ask me!
Many great domains, mainstream and adult, some complete sites with databases, some names with traffic and PR, some investment quality names. Come take a look! { Traffic Orders: Please go here }

.:: SHARPEN the Elite - BURN the leftovers! Ooh-Rah!! ::.
Adult Site Traffic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote