Now I am using php and mysql so not sure if this should be in the php section.
If you can help I would be most greatful.
I am trying to create a search page so that it shows data and one of the columns in the mysql database contains links to a file for the particular record of a person which is stored on the webserver but when I click on the link it cannot find the file. so any help you can give about linking to files locally stored on a webserver so that you can click and open them would be helpful. This is part of my code which includes the linking to the file. I put in bold the areas of code which are directly to do with the link.
while($row = mysql_fetch_assoc($searchtattoo))
{
$uniqueT = $row['unique_number'];
$fnameT = $row['first_name'];
$snameT = $row['surname'];
$treattot = $row['total treatments'];
$treatcom = $row['treatments_completed'];
$ampay = $row['amount_paid'];
[B]$filelink = $row['file_link'];[/B]
echo "<table cell padding=3 border=1 align=center>
<tr>
<td> Unique Number </td><td>Firstname </td> <td>Surname</td> <td>total number of treatments</td><td>number of treatments had</td> <td>amount paid in pounds</td><td>File Link </td>
</tr>
<tr>
<td>$uniqueT </td> <td> $fnameT </td> <td> $snameT </td> <td> $treattot </td> </td> <td> $treatcom </td> <td> $ampay </td> <td>[B]<a href=".$filelink.">".$filelink." </a>[/B]
</tr>
</table>
";
}
The file location as stored in my database is
T1002victoriadeboer.tiff
The filelocation as on the USB drive I am working on is
F:\xampp\htdocs\laserclearsearch\Tattoo\laserclearsearch\Tattoo\T1002victoriadeboer\T1002victoriadeboer.tiff