Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question
#1
Ok, when i put this:
Code:
//<p class="newsbar">Ignore This Bar For Now.</p>

the code still works, how can I put the code in my script, yet the system will ignore it? I tried // but that doesn't work, anything else?
Reply
#2
// is used to comment lines
if you use that in a html file it will be shown in the source
if it is in a php file it will be ignored

and I don't really understand what you need
Reply
#3
(10-05-2009, 07:49 PM)NinjaGeek Wrote: // is used to comment lines
if you use that in a html file it will be shown in the source
if it is in a php file it will be ignored

and I don't really understand what you need

well, I am so noob, I will need to add this command maybe later, but I will prob end up 4getting it cuz I am noob. So is there a way to keep it in the script? But I don't want the script to accually read it.
Reply
#4
Then you are doing it right with // or you can use mulitline comment also
Code:
/* test here */

Code:
<?php

print "This is shown";

// print "Don't not execute";

?>

the first print will be shown and the second not
in html file (files that end with .html .htm) you need to use <!-- text here -->
Code:
<div>show</div>

<!-- comment -->>
Reply
#5
take // out then try
Reply
#6
That still makes the code works man!
I think // is for php, but I need it for CSS and ' is for visual basic. Is anyone catching on?
And Hunt3r:
[Image: 515-samuel-l-jackson-read-the-mutha.gif]
Reply
#7
(10-11-2009, 09:39 AM)macdonjo Wrote: That still makes the code works man!
I think // is for php, but I need it for CSS and ' is for visual basic. Is anyone catching on?

Comments in css are done via /* COMMENT */
Reply
#8
Thank YOU! Finally, someone who knows what there talking about!
Reply
#9
first u have to make the css for this
[Image: 2d75599e9a.png]:superman:
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)