theon
11-01-2009, 06:42 AM
I have this table.
http://img510.imageshack.us/img510/1538/74049939.jpg
I have the following code:
echo "<td>$row[nation]</td>";
echo "<td>$row[area]</td>";
echo "<td>$row[capital]</td>";
echo "<td>$row[population]</td>";
echo "<td>$row[gdp]</td>";
I need the table to display the 'nation' field, but as a hyperlink taken from another field called 'url'. But I don't understand what code to use. I'm confused. Thanks.
http://img510.imageshack.us/img510/1538/74049939.jpg
I have the following code:
echo "<td>$row[nation]</td>";
echo "<td>$row[area]</td>";
echo "<td>$row[capital]</td>";
echo "<td>$row[population]</td>";
echo "<td>$row[gdp]</td>";
I need the table to display the 'nation' field, but as a hyperlink taken from another field called 'url'. But I don't understand what code to use. I'm confused. Thanks.