I am new to php (sorry). I cannot figure out how to make 'field_4' below display as a click-able URL. It is stored in my mysql db in a varchar field.
Any help would be great, thanks.
$result = mysql_query("SELECT * FROM units ORDER BY `field_1`, `field_2`");
echo "<table width='940' cellpadding='3' cellspacing='4' border='0'>
<tr>
<th width='5' align='right'>Unit</th>
<th width='290' align='left'>Designation</th>
<th width='350' align='left'>Unit Information</th>
<th width='' align='left'>Website</th>
</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td align='right' valign='top'>" . $row['field_1'] . "</td>";
echo "<td valign='top'>" . $row['field_2'] . "</td>";
echo "<td valign='top'>" . $row['field_3'] . "</td>";
echo "<td valign='top'>" . $row['field_4'] . "</td>";
echo "</tr>";
}
echo "</table>";