how to echo this line of code??

They have: 164 posts

Joined: Nov 2001

i want to display this line out...

<? include ("$url_site/template/index.php?cat_ID=$cat_ID");?>
'

but it seems that it will include the file but not displaying the line of the code, how can i do it??

i tried this :

<?php
echo \" include (\"$url_site/template/index.php?cat_ID=$cat_ID\");\";
?>

also not working..

pls help...

i would like it to place in here:

<?php
print \"<tr bgcolor=#9999ff height=50><td align=center><font face=\\"Verdana\\" color=\\"#ffffff\\" size=2><b>PLACE IT HERE!</b></font></td></tr></table><br>\n\";
?>

Busy's picture

He has: 6,151 posts

Joined: May 2001

Do you just want to line without the contents?

echo 'url_site/template/index.php?cat_ID=$cat_ID';

or the other way is to use the html code for a '<' which is &lt; and '>' is &gt;

I'm still pretty new to this but where you want to include it may be easier over 3 lines

print "";
print =. "PLACE IT HERE!";
print =. "\n";

good luck

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.