Forum Moderators: coopster

Message Too Old, No Replies

Trouble adding h3 to echo statement

         

mkingsle

5:23 pm on Apr 8, 2008 (gmt 0)

10+ Year Member



I've hit a roadblock on the correct syntax to use. here's the code:

echo $commentNum . " comments so far (<a href=\"#post\">post your own</a>)\n";

What I'd like to do is wrap this in an <h3> tag. How would I do this?

Thanks,

Michael

[edited by: eelixduppy at 6:44 pm (utc) on April 8, 2008]
[edit reason] disabled smileys [/edit]

cameraman

5:58 pm on Apr 8, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Either
echo "<h3>" . $commentNum . " comments so far (<a href=\"#post\">post your own</a>)</h3>\n";
or
echo "<h3>$commentNum comments so far (<a href=\"#post\">post your own</a>)</h3>\n";
whichever is easier for you to look at and understand later.

[edited by: eelixduppy at 6:44 pm (utc) on April 8, 2008]
[edit reason] disabled smileys [/edit]

mkingsle

6:07 pm on Apr 8, 2008 (gmt 0)

10+ Year Member



Thank you for the quick reply. That works great.

It's much appreciated.

Michael