I am trying to display the image from the link in the database. None of my attempts work (remmed out). I can click to view the image by my hyper link but I am not able to display the image..
Can anyone help out and tell me what syntax I should be using? The link will display like this -> file:///m:/Cop100/25836/109402.cpc
<?php
$server_choice = $_GET['word'];
$username="";
$password="";
$database="CPCImage";
if ( $server_choice == live ) {
$serverloc="10.10.100.12";
} else {
$serverloc="localhost";
}
mysql_connect($serverloc,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="SELECT * FROM axhostdata WHERE locker<>'0' and sex<>'D' GROUP BY Key1 ORDER BY Key2 DESC LIMIT 0,100";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
echo "<b><center>Mugshot Database Output</center></b><br>";
echo "<center>Server: $serverloc</center><br><br>";
$i=0;
while ($i < $num) {
$Key1=mysql_result($result,$i,"Key1");
$name=mysql_result($result,$i,"name");
$sex=mysql_result($result,$i,"sex");
$race=mysql_result($result,$i,"race");
$age=mysql_result($result,$i,"age");
$MugDate=mysql_result($result,$i,"mugdate");
$Locker=mysql_result($result,$i,"Locker");
$BookDate=mysql_result($result,$i,"BookDate");
$Link=mysql_result($result,$i,"Link");
echo "<b>$Key1 $name $sex / $race Age: $age <br>MugDate: $MugDate BookDate: $BookDate <a href=$Link>$Link </a> Click Link to view Pic<hr><br>";
//echo "<img src="echo $Link">";
//echo "<img src="<$row['Link']>">";
$i++;
}
?>