0

Hello all,

I am having an issue.
The issue being is that i have a page connecting to a database and displaying it in tables. The problem is, is that I have one column in my page where I want to do this:

<td bgcolor="#817679"><center><? echo $rows['Airport']; ?><? echo $rows['Type']; ?></center></td>

Display both rows in one cell with a space, is there an Easier Way to do this??

The other Problem I need help with is, for the Type it displays as :: Clr, Twr, Gnd, Del, Apr, and Dep.

Is there a way to find

<td bgcolor="#817679"><center><? echo $rows['Type']; ?></center></td>

the clr etc... and Replace with another Word such as Clr = Clearance? ? ?

Could someone please help? Thanks in advance. :)

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by almostbob
1
<?php
//bla bla bla
$airtype = array("clr" => "clearance","twr" => "tower", "gnd" => "Ground", "dep" => "departure"); //etc
echo $rows['airport']." ".$airtype[$rows['type']];
?>

pulls the value from another array, perhaps

Edited by almostbob: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.