how can i display this in white ?????

Thread Solved

Join Date: Jun 2005
Posts: 20
Reputation: nike123 is an unknown quantity at this point 
Solved Threads: 0
nike123 nike123 is offline Offline
Newbie Poster

how can i display this in white ?????

 
0
  #1
Jan 18th, 2006
I have got this code, which am trying to display it in white writing. I could get the first part in white but couldn't get the variable ($HTTP_SESSION_VARS['items'] to come up in white.

echo '<font color="#ffffff"><b>Total Items = </b></font>'.$HTTP_SESSION_VARS['items'];


I have also tried the code below but got an error instead:

echo '<font color="#ffffff"><b>Total Items = '.$HTTP_SESSION_VARS ['items']</b></font>;


Please please please help.
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,040
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 126
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: how can i display this in white ?????

 
0
  #2
Jan 18th, 2006
[php]echo "<span style=\"color:white\"><strong>Total Items:</strong> " . $HTTP_SESSION_VARS['items'] . "</span>";[/php]
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 20
Reputation: nike123 is an unknown quantity at this point 
Solved Threads: 0
nike123 nike123 is offline Offline
Newbie Poster

Re: how can i display this in white ?????

 
0
  #3
Jan 18th, 2006
yep, Thank you . That works
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,040
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 126
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: how can i display this in white ?????

 
0
  #4
Jan 20th, 2006
Awesome. Glad you got it working. I marked your thread solved for ya.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC