hello I am working with php and mysql for a few weeks now, just trying to update a site. Just have a quick question, I think it is an easy one, btu I jsut cant put a finger on it. I have this code:
Jobs for <?php echo "$month/$day/$year" ?>
JOB ID |
JOB TYPE |
USERNAME |
FILE NAME |
DATE |
STATUS |
SPECIAL |
<?php
// if we have any results, put them into a nice, neat table for viewing
if (count ($jobs) > 0) {
for ($i = 0; $i < count ($jobs); $i++) {
$tmpjob = $jobs[$i];
switch ($tmpjob['job_status']) {
case 'New Order':
$bgcolor = "#FF3333";
break;
case 'In Production':
$bgcolor = "#3366FF";
break;
case 'Shipped':
$bgcolor = "#CCCCCC";
break;
case 'Delivered':
$bgcolor = "#CCCCCC";[php][/php][php][/php][php]
all I want to do is to chanve the "Shipped" into, "Shipping". Everytime I try, it color information gets lost. If anyone has any clue what Ia m talking about, it would be great.
thanks
[/php]