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"; Link to comment https://forums.phpfreaks.com/topic/225810-correct-syntax-please/ Share on other sites More sharing options...
Bradley99 Posted January 27, 2011 Share Posted January 27, 2011 Missing a . before the first $myid? Link to comment https://forums.phpfreaks.com/topic/225810-correct-syntax-please/#findComment-1165801 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. Link to comment https://forums.phpfreaks.com/topic/225810-correct-syntax-please/#findComment-1165802 Share on other sites More sharing options...
Bradley99 Posted January 27, 2011 Share Posted January 27, 2011 What's the exact error your receiving? Link to comment https://forums.phpfreaks.com/topic/225810-correct-syntax-please/#findComment-1165805 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"; Link to comment https://forums.phpfreaks.com/topic/225810-correct-syntax-please/#findComment-1165806 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 Link to comment https://forums.phpfreaks.com/topic/225810-correct-syntax-please/#findComment-1165808 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.