hey all,
Just a quick one (I hope). I've only ever really done this as a button from something simple like a drop down box.
I have a table which is populated by a mysql db:
echo "<table class=\"gridtable\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<th>Employer</th>
<th>Vacancy</th>
<th>Vacancy Type</th>
<th>NoVacancies</th>
<th>Learning Provider</th>
<th>Contact Details</th>
</tr>";
while($row=mysqli_fetch_array($results)){
echo'<tr><td>'.$row['Employer'].'</td>';
echo'<td>'.$row['VacancyTitle'].'</td>';
echo'<td>'.$row['VacancyType'].'</td>';
echo'<td>'.$row['NoVacancies'].'</td>';
echo'<td>'.$row['LearningProvider'].'</td>';
echo'<td>'. nl2br($row['ContactDetails']).'</td>';
echo'<tr>';
}
echo "</table>";
Heres my question, I want to be able to hyperlink each entry in the Employer row to their own page which will be Vacancy.php
in my head I thought of doing something like this:
echo'<tr><td><a href="Vacancy.php?ID=". $row['ID']' . ' .$row['Employer'].'</td>';
but it didn't quite work.
Thanks guys