I am attempting to display an image from a search in a database stored in phpmyadmin. I have decided to store the images on the local server but I only managed to get the url of the image to show. After some research I reformed my coding in dreamweaver and came up with this:
Lines 257-265:
However I now get this error:
Can anyone show me what I'm doing wrong and help me to display the image?
Lines 257-265:
PHP:
<?php do { ?>
<tr>
<td><?php echo $row_rsdef3['search_name']; ?></td>
<td><?php echo $row_rsdef3['word_code']; ?></td>
<td><?php echo "<img src=\Images\Horse1.jpg"view.php?file={$row_rsdef3['http://xxx.co.uk/Images/Horse1.jpg']}">";
</tr>
<?php } while ($row_rsdef3 = mysql_fetch_assoc($rsdef3)); ?>
</table></td>
However I now get this error:
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/stalkio/public_html/results4d.php on line 261
Can anyone show me what I'm doing wrong and help me to display the image?