JavaScript and client side scripting.
Moderator: General Moderators
jarow
Forum Commoner
Posts: 83 Joined: Tue Jan 28, 2003 2:58 am
Post
by jarow » Tue May 20, 2003 3:31 am
How would I italicize this?
Code: Select all
<?php echo str_repeat("<dd>",$i++).$row_rsspecies['especie'].'<br />';?>
Many thanks
Jarow
irealms
Forum Contributor
Posts: 215 Joined: Mon Apr 28, 2003 7:10 am
Location: Leeds
Post
by irealms » Tue May 20, 2003 3:49 am
just put <i> and </i> either side of what you want in italics
jarow
Forum Commoner
Posts: 83 Joined: Tue Jan 28, 2003 2:58 am
Post
by jarow » Tue May 20, 2003 4:51 am
Thanks for your help...the following did work but because it is a str.repeat it italicized everything after the first occurrence of 'especie'.
Code: Select all
echo '<i>'.str_repeat("<dd>",$i++).$row_rsspecies['especie'].'</i><br />';
So my question is, is there anyway of just italicizing
Thanks
twigletmac
Her Royal Site Adminness
Posts: 5371 Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK
Post
by twigletmac » Tue May 20, 2003 12:54 pm
I moved this question to the Client Side forum as it is not a PHP question but rather an HTML one - if you've got an open question do a search for it before posting it again.
Have you tried just putting the italics tags around what you want to italise?
Code: Select all
echo str_repeat("<dd>",$i++).'<i>'.$row_rsspecies['especie'].'</i><br />';
Mac
jarow
Forum Commoner
Posts: 83 Joined: Tue Jan 28, 2003 2:58 am
Post
by jarow » Wed May 21, 2003 1:37 am
Sorry about that Mac...when I saw it under client side I thought I had put it there by mistake...that´s why I reposted it...
And second of all....thanks for the code....it worked! You´ve helped me out once again
Jarow