sed57
New Member
Posts: 11
|
Post by sed57 on Sept 25, 2012 22:37:50 GMT -5
For some reason, when I try to comment my code (and its not all the time either, which confuses me) my comments just show up as plain text on the webpage instead of being hidden like normal comments.
Anyone else having this problem? Or know of a solution?
|
|
|
Post by Bob P on Sept 25, 2012 23:09:33 GMT -5
give a code example of comments showing up - hard to answer such a broad question. Usually due to a syntax error. Bob
|
|
sed57
New Member
Posts: 11
|
Post by sed57 on Sept 26, 2012 1:52:43 GMT -5
sorry, I did not check back for a while, but for example:
/* header */ <?php include("1059HW3P2Head.php"); ?>
is at the top of my code that is supposed to look like your website. but the comment shows up at the top of the page still. Also if I do it with the //, i have the same problem. Its mostly just with the first two parts that I had the problem.
|
|
sed57
New Member
Posts: 11
|
Post by sed57 on Sept 26, 2012 1:53:33 GMT -5
*second and third parts
|
|
pae6
New Member
Posts: 4
|
Post by pae6 on Sept 26, 2012 7:16:16 GMT -5
// and /* */ are comments for php. They must be inside of the are you have started using php. Right now your comments are outside of the php code and you would need to use the html comment tag which is <!-- comments here -->
|
|
sed57
New Member
Posts: 11
|
Post by sed57 on Sept 26, 2012 9:33:09 GMT -5
yeah, I just now realized that is what I was doing as well. I was having a mental block on that last night I guess. Thank You though.
|
|