hi, I am currently displaying data from a database as follows, however I would like to be able to add another column to the table which displays a button so a user can download a file that is related to that record, however there is not always a file available which is indicated in the database as either yes or no. If it is yes i would like the download link to be displayed in the new column as a button or left blank if no file has been uploaded.
I was just wondering how this could be done? thank you
<?php
while($display=mysql_fetch_array($query))
{
echo "<tr><td>".$display['problemId']."</td><td>".$display['name']."</td></tr>";
}
?>
[/coded]