takn25 Posted January 27, 2011 Share Posted January 27, 2011 This is what i am trying to achieve for my URL categories=$pagename &id=$myid this is what i am currently doing having some syntax errors please would appreciate if some one can resolve this the code is below echo "<a href=\"./categories.php?name=".$pagename.&id=$myid."\">\".$myid.\".\"</a>\"\n"; Quote Link to comment Share on other sites More sharing options...
Bradley99 Posted January 27, 2011 Share Posted January 27, 2011 Missing a . before the first $myid? Quote Link to comment Share on other sites More sharing options...
takn25 Posted January 27, 2011 Author Share Posted January 27, 2011 tried still an error occurs thanks for trying. Quote Link to comment Share on other sites More sharing options...
Bradley99 Posted January 27, 2011 Share Posted January 27, 2011 What's the exact error your receiving? Quote Link to comment Share on other sites More sharing options...
Zurev Posted January 27, 2011 Share Posted January 27, 2011 This is what i am trying to achieve for my URL categories=$pagename &id=$myid this is what i am currently doing having some syntax errors please would appreciate if some one can resolve this the code is below echo "<a href=\"./categories.php?name=".$pagename.&id=$myid."\">\".$myid.\".\"</a>\"\n"; echo "<a href=\"./categories.php?name=$pagename&id=$myid\">$myid</a>\"\n"; Quote Link to comment Share on other sites More sharing options...
dragon_sa Posted January 27, 2011 Share Posted January 27, 2011 echo "<a href='../categories.php?name=$pagename&id=$myid'>$myid</a>\n"; if you are wanting to go up one level in directory structure its 2 dots if its at the same level its no dots before the directory Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.