Instead of using HTML comments (which do not affect the PHP code - which will still execute), you should use PHP comments:
<?php /* <tr> <td><?php echo $entry_keyword; ?></td> <td><input type="text" name="keyword" value="<?php echo $keyword; ?>" /></td> </tr> <tr> <td><?php echo $entry_sort_order; ?></td> <td><input name="sort_order" value="<?php echo $sort_order; ?>" size="1" /></td> </tr> */ ?>
However, PHP code inside HTML will not execute; and nothing (neither HTML, nor PHP, nor the result of non-execution) will be displayed.
Just one note: you cannot nest comments in C style ... this means that the comment ends on the first */ met.
Pascal MARTIN Apr 25 '11 at 18:00 2011-04-25 18:00
source share