You need to put some content in the a
tag (note the NAME OF YOUR LINK
I added).
And also you haven't added quotes around the href attribute (note the \"
I added).
while ($rows = mysql_fetch_assoc($run)) {
echo "<tr>";
echo "<td>". $rows['file_ref'] ."</td>";
echo "<td>". $rows['file_name'] ."</td>";
echo "<td>". $rows['owner'] ."</td>";
echo "<td><a href=\"" . $rows['url'] . "\">NAME OF YOUR LINK</a></td>";
echo "<td><a href=\"add_borrower.php?id=" . $rows['id'] . "\">Borrow</a></td>";
echo "</tr>";
}
Also your coding conventions are rather inconsistent, (your mixing both kinds of quotes. You should use one or the other. See the following examples of how to quote consistently.
while ($rows = mysql_fetch_assoc($run)) {
echo "<tr>";
echo "<td>{$rows['file_ref']}</td>";
echo "<td>{$rows['file_name']}</td>";
echo "<td>{$rows['owner']}</td>";
echo "<td><a href=\"{$rows['url']}\">NAME OF YOUR LINK</a></td>";
echo "<td><a href=\"add_borrower.php?id={$rows['id']}\">Borrow</a></td>";
echo "</tr>";
}
Or:
while ($rows = mysql_fetch_assoc($run)) {
echo '<tr>';
echo '<td>'.$rows['file_ref'].'</td>';
echo '<td>'.$rows['file_name'].'</td>';
echo '<td>'.$rows['owner'].'</td>';
echo '<td><a href="'.$rows['url'].'">NAME OF YOUR LINK</a></td>';
echo '<td><a href="add_borrower.php?id='.$rows['id'].'">Borrow</a></td>';
echo '</tr>';
}
Or:
while ($rows = mysql_fetch_assoc($run)) {
echo <<<HTML
<tr>
<td>{$rows['file_ref']}</td>
<td>{$rows['file_name']}</td>
<td>{$rows['owner']}</td>
<td><a href="{$rows['url']}">NAME OF YOUR LINK</a></td>
<td><a href="add_borrower.php?id={$rows['id']}">Borrow</a></td>
</tr>
HTML;
}