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 to come up in white.

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


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

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


Please please please help.

Recommended Answers

All 3 Replies

echo "<span style=\"color:white\"><strong>Total Items:</strong> " . $HTTP_SESSION_VARS['items'] . "</span>";

yep, Thank you . That works

Awesome. Glad you got it working. I marked your thread solved for ya.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.