Hello, I just solved it, but thanx for the help.
I was missing the . at the end of the selected array.
This is how it should be:
if ($GET['search_hub']) {
$sql = "SELECT routes.routeid, depart.depart, depart.departcode, arrive.arrive, arrive.arrivecode
FROM (routes INNER JOIN depart
ON routes.departid = depart.departid)
INNER JOIN arrive ON routes.arriveid = arrive.arriveid
WHERE depart.departcode = '".$GET['search_hub']."'";
$result = mysql_query($sql, $db);
print "<table border=0>";
print "<tr><th><p>Route Code</th><th><p>Departure Airport</th><th><p>Code</th><th><p>Arrival Airport</th><th><p>Code</th></tr>";
while
($row = mysql_fetch_array($result)){
print "<tr><td>".$row['routeid']."</td>";
print "<td>".$row['depart']."</td>";
print "<td>".$row['departcode']."</td>";
print "<td>".$row['arrive']."</td>";
print "<td>".$row['arrivecode']."</td></tr>"; }
print "</table>";
}
Thankyou again for your help, much appreicated