|
I have a MYSQL database and a table that contains 15 fields
After attaching to the database and displaying some of the fields uisng the following code: All the data in the database is being displayed in a "Do while if" statement.
<tr>
<td bgcolor="#00FF99"><font faces="Arial,Helvetica,sans-serif" size="2"><? echo $state;?><font></td>
<td><font faces="Arial,Helvetica,sans-serif" size="3"><? echo $name;?><font></td>
<td><font faces="Arial,Helvetica,sans-serif" size="2"><? echo $location;?><font></td>
<td><font faces="Arial,Helvetica,sans-serif" size="2"><? echo $dates;?><font></td>
<td><font faces="Arial,Helvetica,sans-serif" size="2"><? echo $type;?><font></td>
<td><font faces="Arial,Helvetica,sans-serif" size="2"><? echo $agegroup;?><font></td>
</tr>
I want the "State" field to be displayed as a link, so that when you click on it, it will call another "php" file that would display the other associated data.
Last edited by bobwill; 01-25-2007 at 10:50 AM..
|