Italics text - simple question

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
jarow
Forum Commoner
Posts: 83
Joined: Tue Jan 28, 2003 2:58 am

Italics text - simple question

Post by jarow »

How would I italicize this?

Code: Select all

<?php echo str_repeat("<dd>",$i++).$row_rsspecies['especie'].'<br />';?>
Many thanks

Jarow
User avatar
irealms
Forum Contributor
Posts: 215
Joined: Mon Apr 28, 2003 7:10 am
Location: Leeds

at a guess

Post by irealms »

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 »

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

Code: Select all

$row_rsspecies['especie']



Thanks
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

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 »

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
Post Reply