Page 1 of 1

Italics text - simple question

Posted: Tue May 20, 2003 3:31 am
by jarow
How would I italicize this?

Code: Select all

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

Jarow

at a guess

Posted: Tue May 20, 2003 3:49 am
by irealms
just put <i> and </i> either side of what you want in italics

Posted: Tue May 20, 2003 4:51 am
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

Posted: Tue May 20, 2003 12:54 pm
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

Posted: Wed May 21, 2003 1:37 am
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