Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding a comment statement within PHP and html code?


falconpilot

Recommended Posts

I thought this would be an easy thing to figure out but boy was I wrong. All I am trying to do is add a simple comment or as we old basic programmers used to call it a REM statement inside the php code. Can someone tell me how to enter comment statement in both php and html. Thanks.

 

falconpilot

Link to comment
Share on other sites

To do it within php just start the line with //

e.g.

 

// This is a comment

 

in amongst html bracket the comment with <!-- and //-->

<!--

This is a comment

//-->

Trust me, I'm an Accountant.

Link to comment
Share on other sites

And to span multiple lines (in PHP) you'd use:

 

 /*

this

is

a

comment

*/

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Link to comment
Share on other sites

I am also wondering if I could use the multi-line format as a one line comment to. For example:

 

/* This is a one line comment using multi line format */

 

Would this work?

 

Thanks again for your help.

 

falconpilot

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...