Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get Image from Access database

Status
Not open for further replies.

mazdaman

Programmer
Oct 17, 2003
55
GB
I have the following code but as Im a new to this im getting a bit mixed up. Will the following code get the image from my database, the image is held in a table field name of "picname" Any ideas ...

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="32%" valign="top"><%Response.Write(<img src=../data mem_detail.Fields.Item("picname").value)%> </td>
<td width="64%" valign="top" class="blueheaderlge"><%=(mem_detail.Fields.Item("firstname").Value)%>&nbsp; <%=(mem_detail.Fields.Item("surname").Value)%>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="blacklage">
<tr>
<td><%=(mem_detail.Fields.Item("dob").Value)%> - <%=(mem_detail.Fields.Item("dod").Value)%></td>
</tr>
</table></td>
</tr>
</table>
 
nearly - try this...
Code:
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
  <td width="32%" valign="top"><img src="../data/<%=mem_detail("picname")%>"></td>
  <td width="64%" valign="top" class="blueheaderlge"><%=mem_detail("firstname") & "&nbsp;" & mem_detail("surname")%>
  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="blacklage">
  <tr>
    <td><%=mem_detail("dob") & " - " & mem_detail("dod")%></td>
  </tr>
  </table>
  </td>
</tr>
</table>

Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top