Jump to content

Correct Syntax please.


takn25

Recommended Posts

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

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";

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.