Forum Moderators: coopster

Message Too Old, No Replies

Need to insert a bold tag

on a PHP script. It's giving me problems.

         

walkman

11:25 pm on Nov 28, 2005 (gmt 0)



Hi,
I need to enter a bold tag on a part of my db. This is the only place where I can enter:
$actcp->number = "some text here <b>" . $actcp->number ;
} else {

Any ideas on how to enter the closing bold tag? I am getting a blank page when I enter it normally. I tried adding the ." or just ", but no luck.

all help will be greatly appreciated

StupidScript

11:40 pm on Nov 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How about generating a variable with the value first, then making the assignment:

$actcp_number = "some text here <b>" . $actcp->number . "</b>";

$actcp->number = $actcp_number ;

walkman

12:55 am on Nov 29, 2005 (gmt 0)



I order you to change you name ;)

It worked. Thanks.

Apparently I needed the "" around the </b>

thanks again,