if ($type == "tbl_quote_passengers" || "tbl_quote_pick" || "tbl_quote_time") { echo "<td valign='top' bgcolor='$bg_color_2'><font color='#FFFFFF'>Value in £</td>"; } else { echo "<td valign='top' bgcolor='$bg_color_2'><font color='#FFFFFF'>Miles</td>"; }
Don't you need to separate out your || statements?
if (($type == "tbl_quote_passengers") || ($type == "tbl_quote_pick") || ($type == "tbl_quote_time"))
that doesnt work
code (after correction above) seems perfect. must be elsewhere. try dumping $type: var_dump($type). perhaps something like uppercase/lowercase distinction or failed db query.
Have just tried it again and it works fine
V.Weird!
Thankyou